From 973354470c31e3c918a6b06ec6ff8845bea556cb Mon Sep 17 00:00:00 2001 From: Theo Arends <11044339+arendst@users.noreply.github.com> Date: Wed, 6 Apr 2022 09:50:48 +0200 Subject: [PATCH] Fix compilation --- tasmota/tasmota_globals.h | 3 +++ tasmota/xdrv_59_influxdb.ino | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/tasmota/tasmota_globals.h b/tasmota/tasmota_globals.h index e021ac664..e30bfe22f 100644 --- a/tasmota/tasmota_globals.h +++ b/tasmota/tasmota_globals.h @@ -44,6 +44,9 @@ extern "C" void custom_crash_callback(struct rst_info * rst_info, uint32_t stack extern "C" void resetPins(); extern "C" int startWaveformClockCycles(uint8_t pin, uint32_t highCcys, uint32_t lowCcys, uint32_t runTimeCcys, int8_t alignPhase, uint32_t phaseOffsetCcys, bool autoPwm); +#ifdef USE_INFLUXDB +void InfluxDbProcess(bool use_copy = false); +#endif #ifdef ESP32 #if CONFIG_IDF_TARGET_ESP32 // ESP32/PICO-D4 diff --git a/tasmota/xdrv_59_influxdb.ino b/tasmota/xdrv_59_influxdb.ino index 999820427..70f9b2803 100644 --- a/tasmota/xdrv_59_influxdb.ino +++ b/tasmota/xdrv_59_influxdb.ino @@ -366,7 +366,7 @@ void InfluxDbProcessJson(bool use_copy = false) { } } -void InfluxDbProcess(bool use_copy = false) { +void InfluxDbProcess(bool use_copy) { if (Settings->sbflag1.influxdb_sensor) { InfluxDbProcessJson(use_copy); }