Change placeholder command for frontend testing
This commit is contained in:
10
src/parser.c
10
src/parser.c
@@ -49,29 +49,29 @@ void CMD_Parse(char ch)
|
||||
// Placeholder
|
||||
switch (state) {
|
||||
case 0:
|
||||
if (ch == 't')
|
||||
if (ch == 'T')
|
||||
state = 1;
|
||||
break;
|
||||
case 1:
|
||||
if (ch == 'e')
|
||||
if (ch == 'E')
|
||||
state = 2;
|
||||
else
|
||||
state = 0;
|
||||
break;
|
||||
case 2:
|
||||
if (ch == 's')
|
||||
if (ch == 'M')
|
||||
state = 3;
|
||||
else
|
||||
state = 0;
|
||||
break;
|
||||
case 3:
|
||||
if (ch == 't')
|
||||
if (ch == 'P')
|
||||
state = 4;
|
||||
else
|
||||
state = 0;
|
||||
break;
|
||||
case 4:
|
||||
if (ch == '\n') {
|
||||
if (ch == ' ') {
|
||||
// XXX: Just so the web server can show something...
|
||||
USART_Printf("[CORE] Parsed 'CMD_SET_TEMP' token.\r\n");
|
||||
USART_Printf("[CORE] Parsed 'CMD_SET_DEWP' token.\r\n");
|
||||
|
||||
Reference in New Issue
Block a user