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: CmdMessenger.cpp
- Revision:
- 1:798b310a5240
- Parent:
- 0:44e65e1ce5ee
--- a/CmdMessenger.cpp Thu Nov 26 10:37:28 2015 +0000
+++ b/CmdMessenger.cpp Thu Nov 26 17:24:47 2015 +0000
@@ -51,6 +51,7 @@
#define READONECHAR(comms) comms->getc()
#define PRINTONECHAR(comms,c) comms->putc(c)
#define PRINTSTRING(comms,s) comms->puts(s)
+#define millis() (us_ticker_read()/1000)
#endif
#ifdef ARDUINO
#define BYTEAVAILLABLE(comms) comms->available()
@@ -205,7 +206,6 @@
*/
bool CmdMessenger::blockedTillReply(unsigned int timeout, byte ackCmdId)
{
- /** TODO:ggf
unsigned long time = millis();
unsigned long start = time;
bool receivedAck = false;
@@ -214,8 +214,6 @@
receivedAck = checkForAck(ackCmdId);
}
return receivedAck;
- **/
- return true;
}
/**