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: SoftSerial SDFileSystem mbed wave_player
Diff: Relay.cpp
- Revision:
- 25:d28cfa47ff46
- Parent:
- 24:d91e9b3b5bd5
- Child:
- 29:c2d95d88ee0b
--- a/Relay.cpp Wed May 17 00:10:42 2017 +0200
+++ b/Relay.cpp Tue May 16 22:49:52 2017 +0000
@@ -57,7 +57,7 @@
// send max 64 bytes
int m = 0;
for (m; m < k; ++m) {
- while (!softSerial.readable());
+ while (!softSerial.writeable());
softSerial.putc(buffer[m]);
}