New xbee sent protocol
Dependencies: mbed C12832 XBee
Diff: main.cpp
- Revision:
- 2:2bf280435a91
- Parent:
- 1:9ffff91aeeb2
- Child:
- 3:a7a7dc5e687f
--- a/main.cpp Tue Mar 22 12:01:02 2016 +0000 +++ b/main.cpp Wed Mar 23 11:50:22 2016 +0000 @@ -20,6 +20,8 @@ char Des=0b00000001; char Item,Status,Checksum; +int i; + bool sending=1; char control[4]; @@ -187,6 +189,11 @@ t.stop(); t.reset(); teller=0; + while(i<5){ + control[i]=0; + i++; + } + i=0; } if(control[3]==0b11110000){ lcd.cls();