mirror of
https://github.com/IoTManagerProject/IoTManager.git
synced 2026-03-30 20:09:14 +03:00
Исправляем ошибку с определением не верных показателей сенсора Sht20h
This commit is contained in:
@@ -14,7 +14,7 @@ class Sht20t : public IoTSensor {
|
|||||||
void doByInterval() {
|
void doByInterval() {
|
||||||
sht->read();
|
sht->read();
|
||||||
float value = sht->getTemperature();
|
float value = sht->getTemperature();
|
||||||
if (value != -46.85) regEvent(value, "Sht20t");
|
if (value > -46.85F) regEvent(value, "Sht20t");
|
||||||
else SerialPrint("E", "Sensor Sht20t", "Error");
|
else SerialPrint("E", "Sensor Sht20t", "Error");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user