mirror of
https://github.com/IoTManagerProject/IoTManager.git
synced 2026-03-28 07:02:17 +03:00
Исправляем ошибку с определением не верных показателей сенсора Sht20h
This commit is contained in:
@@ -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");
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user