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
Diff: src/serial.cpp
- Revision:
- 12:fd1fd1857628
- Parent:
- 7:860b3a8275cb
- Child:
- 16:5791665200cb
--- a/src/serial.cpp Fri Dec 07 20:42:41 2018 +0000 +++ b/src/serial.cpp Sat Dec 08 01:53:36 2018 +0000 @@ -152,8 +152,11 @@ **************************************************************/ void showRangeError(int intValue, int iBadValue, float fBadValue) { - if (intValue) sprintf(strbuf, "Out of Range: %d", iBadValue); - else sprintf(strbuf, "Out of Range: %0.3f", fBadValue); + if (intValue){ + sprintf(strbuf, " Out of Range: %d", iBadValue); + }else{ + sprintf(strbuf, " Out of Range: %0.3f", fBadValue); + } sendSerial(strbuf); }