From 032c87c7a965644935dfba622381a6e1e633d7eb Mon Sep 17 00:00:00 2001 From: d0m1n1qu3 Date: Mon, 13 Jul 2020 21:24:38 +0200 Subject: [PATCH] fix that firmware is send everytime since commit 39705a2e059cf616199c1e18eb04a87d00482b7c --- tasmota/xsns_62_MI_ESP32.ino | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tasmota/xsns_62_MI_ESP32.ino b/tasmota/xsns_62_MI_ESP32.ino index efbf1a78a..0211d276d 100644 --- a/tasmota/xsns_62_MI_ESP32.ino +++ b/tasmota/xsns_62_MI_ESP32.ino @@ -1508,7 +1508,7 @@ void MI32Show(bool json) if (!isnan(MIBLEsensors[i].fertility)) { ResponseAppend_P(PSTR(",\"Fertility\":%f"), MIBLEsensors[i].fertility); } - if (MIBLEsensors[i].firmware != 0x00) { // this is the error code -> no firmware + if (MIBLEsensors[i].firmware[0] != '\0') { // this is the error code -> no firmware ResponseAppend_P(PSTR(",\"Firmware\":\"%s\""), MIBLEsensors[i].firmware); } }