![](/media/cache/profiles/004acbc8eefec9fe0629b15f52b94bcf.50x50_q85.jpg)
Peter's version
Fork of ScoreCount by
Diff: reciever.cpp
- Revision:
- 5:a50e02fc49cd
- Parent:
- 4:7cec137649a0
- Child:
- 6:e269f6c282bc
diff -r 7cec137649a0 -r a50e02fc49cd reciever.cpp --- a/reciever.cpp Thu May 02 16:07:04 2013 +0000 +++ b/reciever.cpp Thu May 02 21:18:42 2013 +0000 @@ -10,11 +10,6 @@ myserial.baud(1200); DigitalOut blueled(LED1); - - - - - while(1) { while(!myserial.readable()) @@ -26,9 +21,7 @@ { blueled=0; myserial.scanf("%s",string); - - - + if((strstr (string,"011")) != NULL) { p = 1; @@ -50,11 +43,7 @@ blueled=!blueled; wait(0.2); return p; - - } - - - } - + } + } } } \ No newline at end of file