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.
Dependencies: mbed SDFileSystemFilinfo AriSnProtocol NetServicesMin AriSnComm MODSERIAL PowerControlClkPatch DS1820OW
Diff: SnCommUsb.cpp
- Revision:
- 18:55f1581f2ee4
- Parent:
- 16:744ce85aede2
- Child:
- 25:57b2627fe756
--- a/SnCommUsb.cpp Wed Sep 12 22:50:25 2012 +0000
+++ b/SnCommUsb.cpp Sat Sep 29 04:54:15 2012 +0000
@@ -75,7 +75,7 @@
if ( CALL_MEMBER_FN(*fgCpu, able)() ) { // readable/writable ?
res = CALL_MEMBER_FN(*this, fcn)(data+b);
if (res<sizeof(char)) {
- return res; // error
+ return b; // error
} else {
b += res;
}
@@ -84,7 +84,8 @@
}
Watchdog::kick(); // don't reset; wait until timeout
}
- return b; // timeout
+
+ return b;
}
int32_t SnCommUsb::ReceiveAll(char* const buf, const uint32_t mlen,