Own fork of MbedSmartRestMain
Dependencies: C027_Support C12832 LM75B MMA7660 MbedSmartRest mbed-rtos mbed
Fork of MbedSmartRestMain by
Diff: operation/ControlParser.cpp
- Revision:
- 95:5dfdc8568e9f
- Parent:
- 94:010b0f7a0a1a
- Child:
- 98:e369fc75c000
diff -r 010b0f7a0a1a -r 5dfdc8568e9f operation/ControlParser.cpp --- a/operation/ControlParser.cpp Wed Apr 22 11:22:25 2015 +0000 +++ b/operation/ControlParser.cpp Mon Apr 27 10:50:21 2015 +0000 @@ -2,6 +2,7 @@ #include <string.h> #include "ControlParser.h" #include "DeviceFeedback.h" +#include "LCDDisplay.h" #include "logging.h" void ControlParser::handleControlMessage(const char *buf) @@ -96,15 +97,15 @@ } } else if (opType == 221) { char line[30] = {0}; - size_t num = tok.len<30 ? tok.len : 30; + size_t num = tok.len < 30 ? tok.len : 30; if (tok.type == Token::STRING) strncpyEscape(line, tok.p, num); else strncpy(line, tok.p, num); - _lcdDisplay.setFirstLine(line); + LCDDisplay::inst().setFirstLine(line); } else if (opType == 222) { char config[128] = {0}; - size_t num = tok.len<128 ? tok.len : 128; + size_t num = tok.len < 127 ? tok.len : 127; strncpy(config, tok.p, num); ret = _configSync.updateConfiguration(config); } else {