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.
Dependents: M2X_dev axeda_wrapper_dev MTS_M2x_Example1 MTS_Cellular_Connect_Example ... more
Diff: io/MTSBufferedIO.cpp
- Revision:
- 67:1003b410f781
- Parent:
- 43:3cacf019ed7d
- Child:
- 68:c490e4a51778
--- a/io/MTSBufferedIO.cpp Mon Dec 23 19:07:32 2013 +0000
+++ b/io/MTSBufferedIO.cpp Mon Dec 23 19:55:31 2013 +0000
@@ -32,7 +32,7 @@
}
int MTSBufferedIO::writeable() {
- return txBuffer->capacity();
+ return txBuffer->remaining();
}
int MTSBufferedIO::read(char* data, int length)
@@ -46,7 +46,7 @@
}
int MTSBufferedIO::readable() {
- return rxBuffer->available();
+ return rxBuffer->size();
}
bool MTSBufferedIO::txEmpty()
uIP Socket Modem Shield (Outdated - see below)