fix that firmware is send everytime since commit 39705a2e059cf616199c1e18eb04a87d00482b7c

This commit is contained in:
d0m1n1qu3 2020-07-13 21:08:10 +02:00
parent e468f941db
commit 3640372fd0

View File

@ -1508,8 +1508,10 @@ 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
ResponseAppend_P(PSTR(",\"Firmware\":\"%s\""), MIBLEsensors[i].firmware);
}
}
if (MIBLEsensors[i].type > FLORA){
if (!isnan(MIBLEsensors[i].hum) && !isnan(MIBLEsensors[i].temp)) {
ResponseAppend_P(PSTR(","));