From 3640372fd08740a1fb03dab2c877d9c2a2172781 Mon Sep 17 00:00:00 2001 From: d0m1n1qu3 Date: Mon, 13 Jul 2020 21:08:10 +0200 Subject: [PATCH] fix that firmware is send everytime since commit 39705a2e059cf616199c1e18eb04a87d00482b7c --- tasmota/xsns_62_MI_ESP32.ino | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tasmota/xsns_62_MI_ESP32.ino b/tasmota/xsns_62_MI_ESP32.ino index a46f516d3..efbf1a78a 100644 --- a/tasmota/xsns_62_MI_ESP32.ino +++ b/tasmota/xsns_62_MI_ESP32.ino @@ -1508,7 +1508,9 @@ void MI32Show(bool json) if (!isnan(MIBLEsensors[i].fertility)) { ResponseAppend_P(PSTR(",\"Fertility\":%f"), MIBLEsensors[i].fertility); } - ResponseAppend_P(PSTR(",\"Firmware\":\"%s\""), MIBLEsensors[i].firmware); + if (MIBLEsensors[i].firmware != 0x00) { // this is the error code -> no firmware + ResponseAppend_P(PSTR(",\"Firmware\":\"%s\""), MIBLEsensors[i].firmware); + } } if (MIBLEsensors[i].type > FLORA){ if (!isnan(MIBLEsensors[i].hum) && !isnan(MIBLEsensors[i].temp)) {