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: FXOS8700CQ Pubnub_mbed2_sync WNCInterface mbed-rtos mbed
Diff: main.cpp
- Revision:
- 1:610520d32d22
- Parent:
- 0:d2425a595807
- Child:
- 2:fe8e935b9342
--- a/main.cpp Tue Dec 20 16:44:32 2016 +0000 +++ b/main.cpp Wed Dec 21 20:24:23 2016 +0000 @@ -327,7 +327,7 @@ char i=0; // wait for something on com port - while((b=obd2.getc())!=PROMPT && i<size) // this blocks! Arduino Serial.read would return -1 + while((b=obd2.getcNb())!=PROMPT && i<size) // use MODSERIAL::getcNb() non-blocking to match Arduino Serial.read() behavior { if(b>=' ') str[i++]=b;