From 96a13f39c3c29c9ee8ae2c570e9794fdf5bb1f46 Mon Sep 17 00:00:00 2001 From: Max Prokhorov Date: Mon, 16 Dec 2019 14:40:43 +0300 Subject: [PATCH] Influxdb: don't queue any data while connecting --- code/espurna/influxdb.ino | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/code/espurna/influxdb.ino b/code/espurna/influxdb.ino index 8662efe4..67f82dc9 100644 --- a/code/espurna/influxdb.ino +++ b/code/espurna/influxdb.ino @@ -150,9 +150,8 @@ void _idbBrokerStatus(const String& topic, unsigned char id, unsigned int value) // ----------------------------------------------------------------------------- bool idbSend(const char * topic, const char * payload) { - if (!_idb_enabled) return false; - if (_idb_connected) return false; + if (_idb_connecting || _idb_connected) return false; _idb_values[topic] = payload; _idb_flush = true;