mirror of
https://github.com/Laxilef/OTGateway.git
synced 2026-11-26 08:13:06 +05:00
refactor: use the DHT callback error status
This commit is contained in:
1 parent
a8d7f137eb
commit
d1240ad5f6
1 file changed
+1
-1
+1
-1
@@ -849,7 +849,7 @@ static Task pollDhtSensorsTask("Poll DHT sensors", [](void*) {
|
|||||||
|
|
||||||
ESP_LOGW(
|
ESP_LOGW(
|
||||||
L_SENSORS_DHT, "GPIO %hhu, sensor #%hhu '%s': failed receiving data (err: %s)",
|
L_SENSORS_DHT, "GPIO %hhu, sensor #%hhu '%s': failed receiving data (err: %s)",
|
||||||
sSensor->gpio, sensorId, sSensor->name, DHT::statusToString(instance.getStatus())
|
sSensor->gpio, sensorId, sSensor->name, DHT::statusToString(status)
|
||||||
);
|
);
|
||||||
|
|
||||||
Sensors::adjustSignalQuality(sensorId, -1);
|
Sensors::adjustSignalQuality(sensorId, -1);
|
||||||
|
|||||||
Reference in new issue
Block a user