From b9327100f2079705a57e1ffb8e90dd71ef15f944 Mon Sep 17 00:00:00 2001 From: cyberman54 Date: Tue, 14 Aug 2018 22:28:34 +0200 Subject: [PATCH 1/2] rcommand.cpp: bugfix issue #139 --- src/rcommand.cpp | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/rcommand.cpp b/src/rcommand.cpp index 0335877e..84af6cd6 100644 --- a/src/rcommand.cpp +++ b/src/rcommand.cpp @@ -267,11 +267,13 @@ 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 command table lookup loop - if (i < 0) // command not found -> exit parser + 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; + } } // command parsing loop if (storeflag) From 758918bf7e6c2acaebcbb6456bcf3d4e5e914826 Mon Sep 17 00:00:00 2001 From: cyberman54 Date: Tue, 14 Aug 2018 22:41:21 +0200 Subject: [PATCH 2/2] espressif32 v1.3.0 --- README.md | 4 ++-- platformio.ini | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) 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 98296872..6f198ad0 100644 --- a/platformio.ini +++ b/platformio.ini @@ -28,7 +28,7 @@ env_default = generic description = Paxcounter is a proof-of-concept ESP32 device for metering passenger flows in realtime. It counts how many mobile devices are around. [common_env_data] -platform_espressif32 = espressif32@1.2.0 +platform_espressif32 = espressif32@1.3.0 ;platform_espressif32 = https://github.com/platformio/platform-espressif32.git#feature/stage board_build.partitions = no_ota.csv lib_deps_all = @@ -48,9 +48,9 @@ build_flags = ; Error ; -DCORE_DEBUG_LEVEL=1 ; Warn - -DCORE_DEBUG_LEVEL=2 +; -DCORE_DEBUG_LEVEL=2 ; Info -; -DCORE_DEBUG_LEVEL=3 + -DCORE_DEBUG_LEVEL=3 ; Debug ; -DCORE_DEBUG_LEVEL=4 ; Verbose