Marcus Chang / AsyncSerial
Revision:
3:af3caa18e928
Parent:
2:efec63739aa3
Child:
4:e0a0eef4ca18
--- a/source/AsyncSerial.cpp	Tue Mar 31 10:50:40 2015 +0000
+++ b/source/AsyncSerial.cpp	Wed Apr 01 13:41:38 2015 +0000
@@ -110,7 +110,7 @@
     }
 }
 
-void AsyncSerial::send(send_done_t handler, uint8_t* buffer, uint16_t length)
+void AsyncSerial::send(send_done_t handler, const uint8_t* buffer, uint16_t length)
 {
     if (handler && buffer && length)
     {
@@ -122,7 +122,7 @@
     }
 }
 
-void AsyncSerial::send(uint8_t* buffer, uint16_t length)
+void AsyncSerial::send(const uint8_t* buffer, uint16_t length)
 {
     sendBuffer = buffer;
     sendLength = length;