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: Y201.cpp
- Revision:
- 7:d7ed03291f0a
- Parent:
- 5:df71c00b97d8
diff -r df71c00b97d8 -r d7ed03291f0a Y201.cpp
--- a/Y201.cpp Wed Jul 18 11:06:49 2012 +0000
+++ b/Y201.cpp Thu Jul 19 07:49:06 2012 +0000
@@ -30,14 +30,11 @@
readBuffer[nread] = c;
nread++;
t.reset();
- }
- else
- {
- if(t.read_ms()>3000)
- {
- fprintf(stdout, "Blocked!\n Missed %d bytes over %d\nLast byte read is %02x\n", readLen - nread, readLen, readBuffer[nread-1]);
- return false;
- }
+ } else {
+ if(t.read_ms()>3000) {
+ fprintf(stdout, "Blocked!\n Missed %d bytes over %d\nLast byte read is %02x\n", readLen - nread, readLen, readBuffer[nread-1]);
+ return false;
+ }
}
}
//Thread::wait(1);

