temperature: [#9] [#11] fix temp_value with error value

This commit is contained in:
Vasily Davydov 2023-05-18 11:45:34 +03:00 committed by RedHawk
parent ef32a5077b
commit 1b3a7f4f75

View File

@ -17,7 +17,7 @@ void Temperature::taskFunction()
{
SensorTempTC74 ext_temp_sensor(this->_pi2c, 0x4a);
Event t (Event::ExternalTemp, -10);
int8_t temp_value = 0;
int8_t temp_value = -10;
for (;;)
{
if (ext_temp_sensor.is_up())