xrocusOS_ADXL355 version
Dependencies: mbed SDFileSystem
Diff: main.cpp
- Revision:
- 13:7cda5bef6390
- Parent:
- 12:a45a9c65dc03
- Child:
- 14:89665bcef3f0
--- a/main.cpp Wed May 22 09:10:18 2019 +0000 +++ b/main.cpp Mon May 27 03:07:42 2019 +0000 @@ -12,7 +12,7 @@ /** --- Global Variables --- */ Serial uartStream(SERIAL_TX, SERIAL_RX); - +bool uartOn = true; #ifdef _DEBUG_PRINTF_ Serial dbg(PC_4, PC_5); /* Serial3_TX, Serial3_RX*/ #endif /* _DEBUG_PRINTF_ */ @@ -53,7 +53,7 @@ pCP = new CommandParser(pUR, deviceId, rules, getNumOfRules); pCP->run(); - uartStream.printf(":%d ACK 0004 0000\n", deviceId); + uprintf(":%d ACK 0004 0000\n", deviceId); dbgprintf("start mainloop\n"); mainloop(); } @@ -79,6 +79,7 @@ case OFFLINE_MODE_READY: myled = blinky; if (btn == 0) { + uartOn = false; pCP->parse(":0 RRP 0010"); pCP->parse(":0 RMC 001s"); pCP->parse(":0 SDS 0000");