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: UM12.cpp
- Revision:
- 2:f2cf3a42e690
- Parent:
- 1:84430ccc5662
- Child:
- 4:c947442469dd
diff -r 84430ccc5662 -r f2cf3a42e690 UM12.cpp --- a/UM12.cpp Tue Jul 19 19:29:21 2011 +0000 +++ b/UM12.cpp Fri Jul 22 10:57:14 2011 +0000 @@ -42,6 +42,11 @@ putc(msg); } +void UM12::send(bool msg) +{ + putc((int) msg); +} + void UM12::send(int msg) { char *ch; @@ -62,6 +67,12 @@ return msg; } +bool UM12::receive(bool &msg) +{ + msg = getc(); + return msg; +} + int UM12::receive(int &msg) { int i, intsize = sizeof(int);