This commit is contained in:
2026-02-25 11:41:07 +01:00
parent fa58fe5f20
commit e7aa562c0b
4 changed files with 21 additions and 1 deletions

View File

@@ -208,6 +208,7 @@ void execute_current_command(void)
}
else
{
usb_flush_rx();
send_error(rc);
}
break;
@@ -222,6 +223,7 @@ protocol_state_t waiting_for_command(uint8_t byte)
{
if (byte < 'a' || byte > 'z')
{
LOG_DBG("Ignoring non-command byte: 0x%02x", byte); // Nur aktivieren, wenn nötig!
rx_index = 0;
return PS_WAITING_FOR_COMMAND;
}