fix that firmware is send everytime since commit 39705a2e05
This commit is contained in:
parent
e468f941db
commit
3640372fd0
@ -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)) {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user