mirror of
https://github.com/Laxilef/OTGateway.git
synced 2026-03-20 17:28:37 +05:00
fix: typo
This commit is contained in:
@@ -484,14 +484,11 @@ protected:
|
|||||||
this->dhtIsPolling = false;
|
this->dhtIsPolling = false;
|
||||||
});
|
});
|
||||||
|
|
||||||
DHT::Type sType;
|
DHT::Type sType = DHT::Type::DHT22;
|
||||||
if (sSensor.type == Sensors::Type::DHT11) {
|
if (sSensor.type == Sensors::Type::DHT11) {
|
||||||
sType = DHT::Type::DHT11;
|
sType = DHT::Type::DHT11;
|
||||||
|
|
||||||
} else if (sSensor.type == Sensors::Type::DHT11) {
|
} else if (sSensor.type == Sensors::Type::DHT22) {
|
||||||
sType = DHT::Type::DHT22;
|
|
||||||
|
|
||||||
} else {
|
|
||||||
sType = DHT::Type::DHT22;
|
sType = DHT::Type::DHT22;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -499,7 +496,10 @@ protected:
|
|||||||
Log.sinfoln(FPSTR(L_SENSORS_DHT), F("Started on GPIO %hhu"), sSensor.gpio);
|
Log.sinfoln(FPSTR(L_SENSORS_DHT), F("Started on GPIO %hhu"), sSensor.gpio);
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
Log.swarningln(FPSTR(L_SENSORS_DHT), F("Failed to start on GPIO %hhu"), sSensor.gpio);
|
Log.swarningln(
|
||||||
|
FPSTR(L_SENSORS_DHT), F("Failed to start on GPIO %hhu (err: %s)"),
|
||||||
|
sSensor.gpio, DHT::statusToString(this->dhtInstance.getStatus())
|
||||||
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user