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: MySoftSerial.cpp
- Revision:
- 23:121e3235ccfa
- Parent:
- 22:c821bfae25d7
--- a/MySoftSerial.cpp Tue May 16 21:50:45 2017 +0200
+++ b/MySoftSerial.cpp Tue May 16 20:06:44 2017 +0000
@@ -123,7 +123,6 @@
start_bit = 1; // start from second bit
rx_bit = 0;
rx_error = false;
- printf("q\n");
}
void MySoftSerial::rx_detect_start(void){
@@ -138,19 +137,15 @@
break;
case 1:
ok = val==1;
- printf("a\n");
break;
case 2:
ok = val==0;
- printf("b\n");
break;
case 3:
- printf("c\n");
ok = val==1;
rxticker.attach(this, &MySoftSerial::rx_handler);
break;
default:
- printf("d\n");
ok = false;
}
@@ -166,7 +161,6 @@
void MySoftSerial::rx_handler(void) {
//Receive data
- printf("%i\n",rx_bit);
int val = rx->read();
rxticker.setNext(bit_period);