From ddb87301a42d8a56a03d13b1bac9fec3b5254a11 Mon Sep 17 00:00:00 2001 From: cyberman54 Date: Fri, 19 Aug 2022 19:27:04 +0200 Subject: [PATCH] ESP 32s3 fixes --- src/rcommand.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/rcommand.cpp b/src/rcommand.cpp index 45bfce07..686248f4 100644 --- a/src/rcommand.cpp +++ b/src/rcommand.cpp @@ -324,9 +324,15 @@ void get_config(uint8_t val[]) { void get_status(uint8_t val[]) { ESP_LOGI(TAG, "Remote command: get device status"); payload.reset(); +#ifdef CONFIG_IDF_TARGET_ESP32S3 + payload.addStatus(read_voltage(), (uint64_t)(uptime() / 1000ULL), 0, + // temperatureRead(), + getFreeRAM(), rtc_get_reset_reason(0), RTC_restarts); +#else payload.addStatus(read_voltage(), (uint64_t)(uptime() / 1000ULL), temperatureRead(), getFreeRAM(), rtc_get_reset_reason(0), RTC_restarts); +#endif SendPayload(STATUSPORT); };