Update src/temperature.cpp
Added offset TEMP_OFFSET_DEG_C to assignment of temperatureC
This commit is contained in:
parent
cb6e26718a
commit
200d02e48b
@ -3,7 +3,7 @@
|
|||||||
void readTemperature()
|
void readTemperature()
|
||||||
{
|
{
|
||||||
sensors.requestTemperatures();
|
sensors.requestTemperatures();
|
||||||
float temperatureC = sensors.getTempCByIndex(0);
|
float temperatureC = sensors.getTempCByIndex(0) + TEMP_OFFSET_DEG_C;
|
||||||
lcd.setCursor(13, 3);
|
lcd.setCursor(13, 3);
|
||||||
lcd.write(byte(0));
|
lcd.write(byte(0));
|
||||||
if (temperatureC == DEVICE_DISCONNECTED_C)
|
if (temperatureC == DEVICE_DISCONNECTED_C)
|
||||||
@ -20,7 +20,7 @@ void readTemperature()
|
|||||||
void updateTempDisplay(void *parameter)
|
void updateTempDisplay(void *parameter)
|
||||||
{
|
{
|
||||||
sensors.requestTemperatures();
|
sensors.requestTemperatures();
|
||||||
float temperatureC = sensors.getTempCByIndex(0);
|
float temperatureC = sensors.getTempCByIndex(0) + TEMP_OFFSET_DEG_C;
|
||||||
lcd.setCursor(13, 3);
|
lcd.setCursor(13, 3);
|
||||||
lcd.write(byte(0));
|
lcd.write(byte(0));
|
||||||
if (temperatureC == DEVICE_DISCONNECTED_C)
|
if (temperatureC == DEVICE_DISCONNECTED_C)
|
||||||
|
Loading…
Reference in New Issue
Block a user