diff --git a/README.md b/README.md index 6d5b64d5..8c6400aa 100644 --- a/README.md +++ b/README.md @@ -140,8 +140,8 @@ Hereafter described is the default *plain* format, which uses MSB bit numbering. byte 1-2: Battery or USB Voltage [mV], 0 if no battery probe byte 3-10: Uptime [seconds] - bytes 11-14: CPU temperature [°C] - bytes 15-18: Free RAM [bytes] + byte 11: CPU temperature [°C] + bytes 12-15: Free RAM [bytes] **Port #3:** Device configuration query result diff --git a/platformio.ini b/platformio.ini index bb895931..ce164811 100644 --- a/platformio.ini +++ b/platformio.ini @@ -50,7 +50,7 @@ build_flags = ; Warn ; -DCORE_DEBUG_LEVEL=2 ; Info -; -DCORE_DEBUG_LEVEL=3 + -DCORE_DEBUG_LEVEL=3 ; Debug ; -DCORE_DEBUG_LEVEL=4 ; Verbose diff --git a/src/rcommand.cpp b/src/rcommand.cpp index 76f7ba9b..84af6cd6 100644 --- a/src/rcommand.cpp +++ b/src/rcommand.cpp @@ -267,12 +267,14 @@ void rcommand(uint8_t cmd[], uint8_t cmdlength) { TAG, "Remote command x%02X called with missing parameter(s), skipped", table[i].opcode); - break; // command found -> exit table lookup loop - } // end of command validation - } // end of table lookup loop - if (i < 0) // command not found -> exit parser loop + break; // command found -> exit table lookup loop + } // end of command validation + } // end of command table lookup loop + if (i < 0) { // command not found -> exit parser + ESP_LOGI(TAG, "Unknown remote command x%02X, ignored", cmd[cursor]); break; - } // end of command parsing loop + } + } // command parsing loop if (storeflag) saveConfig();