From a676658977575e4649f4ebd1c1ea84853ce08c5e Mon Sep 17 00:00:00 2001 From: Klaus K Wilting Date: Sun, 24 Feb 2019 15:04:47 +0100 Subject: [PATCH] rcommand.cpp bugfix get_time() --- src/rcommand.cpp | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/src/rcommand.cpp b/src/rcommand.cpp index 397c8e1f..a0c89cc4 100644 --- a/src/rcommand.cpp +++ b/src/rcommand.cpp @@ -274,13 +274,9 @@ void get_bme(uint8_t val[]) { void get_time(uint8_t val[]) { ESP_LOGI(TAG, "Remote command: get time"); -#ifdef HAS_BME payload.reset(); - payload.addtime(now()); + payload.addTime(now()); SendPayload(TIMEPORT, prio_high); -#else - ESP_LOGW(TAG, "BME680 sensor not supported"); -#endif }; // assign previously defined functions to set of numeric remote commands