fix that firmware is send everytime since commit 39705a2e05

This commit is contained in:
d0m1n1qu3 2020-07-13 21:24:38 +02:00
parent 3640372fd0
commit 032c87c7a9
1 changed files with 1 additions and 1 deletions

View File

@ -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);
}
}