Moved sensor bits to loop
This commit is contained in:
parent
e6508b639d
commit
87036d56e5
@ -54,7 +54,6 @@ void TempSensor::setup() {
|
|||||||
Log.notice(F("TSEN: Found %d temperature sensor(s). Using %d resolution" CR),
|
Log.notice(F("TSEN: Found %d temperature sensor(s). Using %d resolution" CR),
|
||||||
mySensors.getDS18Count(), myAdvancedConfig.getTempSensorResolution());
|
mySensors.getDS18Count(), myAdvancedConfig.getTempSensorResolution());
|
||||||
#endif
|
#endif
|
||||||
mySensors.setResolution(myAdvancedConfig.getTempSensorResolution());
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// Set the temp sensor adjustment values
|
// Set the temp sensor adjustment values
|
||||||
@ -94,6 +93,7 @@ float TempSensor::getValue(bool useGyro) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Read the sensors
|
// Read the sensors
|
||||||
|
mySensors.setResolution(myAdvancedConfig.getTempSensorResolution());
|
||||||
mySensors.requestTemperatures();
|
mySensors.requestTemperatures();
|
||||||
|
|
||||||
float c = 0;
|
float c = 0;
|
||||||
|
Loading…
Reference in New Issue
Block a user