This commit is contained in:
Magnus Persson
2022-04-29 16:41:44 +02:00
parent 891794af7c
commit 7d9228f9d8
8 changed files with 37 additions and 9 deletions

View File

@ -32,7 +32,6 @@ SOFTWARE.
OneWire myOneWire(PIN_DS);
DallasTemperature mySensors(&myOneWire);
#define TEMPERATURE_PRECISION 9
TempSensor myTempSensor;
@ -52,10 +51,10 @@ void TempSensor::setup() {
if (mySensors.getDS18Count()) {
#if !defined(TSEN_DISABLE_LOGGING)
Log.notice(F("TSEN: Found %d temperature sensor(s)." CR),
mySensors.getDS18Count());
Log.notice(F("TSEN: Found %d temperature sensor(s). Using %d resolution" CR),
mySensors.getDS18Count(), myAdvancedConfig.getTempSensorResolution());
#endif
mySensors.setResolution(TEMPERATURE_PRECISION);
mySensors.setResolution(myAdvancedConfig.getTempSensorResolution());
}
// Set the temp sensor adjustment values