diff --git a/readme.txt b/readme.txt index 5afc0244e..8b0394ace 100644 --- a/readme.txt +++ b/readme.txt @@ -46,6 +46,12 @@ Processing and Wiring. UPDATES +0009 + +* Fixed a bug in SoftwareSerial (a hardware serial function was being called + instead of the software serial equivalent). Thanks to brianbr for the + report and fix. + 0008 * Updated examples (in distribution and on the website). diff --git a/targets/libraries/SoftwareSerial/SoftwareSerial.cpp b/targets/libraries/SoftwareSerial/SoftwareSerial.cpp index d9fb82b46..6df04d2f7 100755 --- a/targets/libraries/SoftwareSerial/SoftwareSerial.cpp +++ b/targets/libraries/SoftwareSerial/SoftwareSerial.cpp @@ -213,7 +213,7 @@ void SoftwareSerial::printNumber(unsigned long n, uint8_t base) unsigned long i = 0; if (n == 0) { - printByte('0'); + print('0'); return; }