Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Diff: source/AsyncSerial.cpp
- 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;

