Xbee uplink
Dependencies: mbed PowerControl SDFileSystem
Fork of HeptaXbee_Uplink by
Diff: main.cpp
- Revision:
- 1:c0aa8983398d
- Parent:
- 0:9a52d95a79f7
--- a/main.cpp Fri Dec 09 04:59:30 2016 +0000 +++ b/main.cpp Tue Dec 13 07:58:31 2016 +0000 @@ -14,10 +14,10 @@ xbee.xbee_recieve(&rcmd,&cmdflag); pc.printf("rcmd=%d,cmdflag=%d\r\n",rcmd,cmdflag); if(cmdflag==1){ - if(rcmd=='a'){ - pc.printf("Command Get%d\r\n"); - xbee.printf("HEPTA Uplink OK\r"); - } + if(rcmd=='a'){ + pc.printf("Command Get%d\r\n"); + xbee.printf("HEPTA Uplink OK\r"); + } xbee.initialize(); } wait (1.0);