Eric Schott
2017-07-21 00:38:50 UTC
---
ftdipp/ftdi.cpp | 2 +-
ftdipp/ftdi.hpp | 4 ++--
2 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/ftdipp/ftdi.cpp b/ftdipp/ftdi.cpp
index ff10a84..bdd85f5 100644
--- a/ftdipp/ftdi.cpp
+++ b/ftdipp/ftdi.cpp
@@ -233,7 +233,7 @@ int Context::read_chunk_size()
return chunk;
}
-int Context::write(unsigned char *buf, int size)
+int Context::write(const unsigned char *buf, int size)
{
return ftdi_write_data(d->ftdi, buf, size);
}
diff --git a/ftdipp/ftdi.hpp b/ftdipp/ftdi.hpp
index 2241bf3..2289a84 100644
--- a/ftdipp/ftdi.hpp
+++ b/ftdipp/ftdi.hpp
@@ -100,7 +100,7 @@ public:
/* I/O */
int read(unsigned char *buf, int size);
- int write(unsigned char *buf, int size);
+ int write(const unsigned char *buf, int size);
int set_read_chunk_size(unsigned int chunksize);
int set_write_chunk_size(unsigned int chunksize);
int read_chunk_size();
@@ -108,7 +108,7 @@ public:
/* Async IO
TODO: should wrap?
- int writeAsync(unsigned char *buf, int size);
+ int writeAsync(const unsigned char *buf, int size);
void asyncComplete(int wait_for_more);
*/
ftdipp/ftdi.cpp | 2 +-
ftdipp/ftdi.hpp | 4 ++--
2 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/ftdipp/ftdi.cpp b/ftdipp/ftdi.cpp
index ff10a84..bdd85f5 100644
--- a/ftdipp/ftdi.cpp
+++ b/ftdipp/ftdi.cpp
@@ -233,7 +233,7 @@ int Context::read_chunk_size()
return chunk;
}
-int Context::write(unsigned char *buf, int size)
+int Context::write(const unsigned char *buf, int size)
{
return ftdi_write_data(d->ftdi, buf, size);
}
diff --git a/ftdipp/ftdi.hpp b/ftdipp/ftdi.hpp
index 2241bf3..2289a84 100644
--- a/ftdipp/ftdi.hpp
+++ b/ftdipp/ftdi.hpp
@@ -100,7 +100,7 @@ public:
/* I/O */
int read(unsigned char *buf, int size);
- int write(unsigned char *buf, int size);
+ int write(const unsigned char *buf, int size);
int set_read_chunk_size(unsigned int chunksize);
int set_write_chunk_size(unsigned int chunksize);
int read_chunk_size();
@@ -108,7 +108,7 @@ public:
/* Async IO
TODO: should wrap?
- int writeAsync(unsigned char *buf, int size);
+ int writeAsync(const unsigned char *buf, int size);
void asyncComplete(int wait_for_more);
*/
--
2.12.3
--
libftdi - see http://www.intra2net.com/en/developer/libftdi for details.
To unsubscribe send a mail to libftdi+***@developer.intra2net.com
2.12.3
--
libftdi - see http://www.intra2net.com/en/developer/libftdi for details.
To unsubscribe send a mail to libftdi+***@developer.intra2net.com