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.
Fork of SoftSerial by
Revision 11:a0029614de72, committed 2016-04-12
- Comitter:
- SonyPony
- Date:
- Tue Apr 12 16:58:22 2016 +0000
- Parent:
- 10:236fce2e5b8c
- Commit message:
- Fix: set read_buffer to 0 in cunstructor, it caused that first received byte was not correct
Changed in this revision
| SoftSerial.cpp | Show annotated file Show diff for this revision Revisions of this file |
--- a/SoftSerial.cpp Sat Jul 05 13:22:43 2014 +0000
+++ b/SoftSerial.cpp Tue Apr 12 16:58:22 2016 +0000
@@ -2,6 +2,7 @@
SoftSerial::SoftSerial(PinName TX, PinName RX, const char* name) {
tx_en = rx_en = false;
+ read_buffer = 0;
if (TX != NC) {
tx = new DigitalOut(TX);
tx_en = true;
