Xbee uplink
Dependencies: mbed PowerControl SDFileSystem
Fork of HeptaXbee_Uplink by
Revision 1:c0aa8983398d, committed 2016-12-13
- Comitter:
- tomoya123
- Date:
- Tue Dec 13 07:58:31 2016 +0000
- Parent:
- 0:9a52d95a79f7
- Commit message:
- Xbee Uplink
Changed in this revision
main.cpp | Show annotated file Show diff for this revision Revisions of this file |
diff -r 9a52d95a79f7 -r c0aa8983398d main.cpp --- 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);