Исправляем ошибку с определением не верных показателей сенсора Sht20h

This commit is contained in:
2022-02-01 23:22:53 +03:00
parent a745d61e03
commit 5f076d50e8

View File

@@ -14,7 +14,7 @@ class Sht20t : public IoTSensor {
void doByInterval() {
sht->read();
float value = sht->getTemperature();
if (value != -46.85) regEvent(value, "Sht20t");
if (value > -46.85F) regEvent(value, "Sht20t");
else SerialPrint("E", "Sensor Sht20t", "Error");
}