forked SoftSerial
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 |
diff -r 236fce2e5b8c -r a0029614de72 SoftSerial.cpp --- 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;