
UART Command Parser Time Manager Data Store for SD Card for stm32l476 [it's not Licensed as BSD/GPLx]
Dependencies: mbed SDFileSystem
Diff: common/CommandParser.cpp
- Revision:
- 19:36072b9b79f3
- Parent:
- 13:7cda5bef6390
--- a/common/CommandParser.cpp Fri Jun 14 00:21:09 2019 +0000 +++ b/common/CommandParser.cpp Fri Jul 05 01:26:19 2019 +0000 @@ -41,16 +41,16 @@ /* parsing */ head = pStr; - uprintf("%s\n", pStr); + //uprintf("%s\n", pStr); /** Command Format ":0 CMD 0000" */ if (len != CmdLen) { - this->reply(false, CommandParser::CmdReply::InvalidLen); + this->reply(false, CommandParser::NakCode::NAK_INVAL_LEN); return -1; } /** check Command Header */ if (head[0] != ':') { - this->reply(false, CommandParser::CmdReply::InvalidFmt); + this->reply(false, CommandParser::NakCode::NAK_INVAL_FMT); return -1; } /** check Command DeviceID */ @@ -72,7 +72,7 @@ ruleTable[rn].exarg); } - this->reply(false, CommandParser::CmdReply::InvalidCmd); + this->reply(false, CommandParser::NakCode::NAK_INVAL_CMD); return -1; }