Change placeholder command for frontend testing

This commit is contained in:
2024-08-27 21:29:37 +02:00
parent 5dbd4b5c9e
commit 0836f709c3

View File

@@ -49,29 +49,29 @@ void CMD_Parse(char ch)
// Placeholder // Placeholder
switch (state) { switch (state) {
case 0: case 0:
if (ch == 't') if (ch == 'T')
state = 1; state = 1;
break; break;
case 1: case 1:
if (ch == 'e') if (ch == 'E')
state = 2; state = 2;
else else
state = 0; state = 0;
break; break;
case 2: case 2:
if (ch == 's') if (ch == 'M')
state = 3; state = 3;
else else
state = 0; state = 0;
break; break;
case 3: case 3:
if (ch == 't') if (ch == 'P')
state = 4; state = 4;
else else
state = 0; state = 0;
break; break;
case 4: case 4:
if (ch == '\n') { if (ch == ' ') {
// XXX: Just so the web server can show something... // 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_TEMP' token.\r\n");
USART_Printf("[CORE] Parsed 'CMD_SET_DEWP' token.\r\n"); USART_Printf("[CORE] Parsed 'CMD_SET_DEWP' token.\r\n");