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
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");