George Cochrane
/
ScoreCount2
Peter's version
Fork of ScoreCount by
Diff: reciever.cpp
- Revision:
- 5:a50e02fc49cd
- Parent:
- 4:7cec137649a0
- Child:
- 6:e269f6c282bc
--- 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