temperature: Sensor-specific handling. Proper delay.

This commit is contained in:
RedHawk 2023-05-18 13:29:34 +03:00
parent 1ce12cfd02
commit 85520b6fad
2 changed files with 3 additions and 2 deletions

View File

@ -19,7 +19,7 @@ SensorTempTC74::~SensorTempTC74()
int8_t SensorTempTC74::getTemperature()
{
return static_cast<int8_t>(this->read());
return static_cast<int8_t>(this->read()) - 6;
}
bool SensorTempTC74::is_up()

View File

@ -31,7 +31,8 @@ void Temperature::taskFunction()
LOG_DEBUG("External temperature is: %d", temp_value);
t.setDataOf(Event::ExternalTemp, temp_value);
_qm->send<Event>(ThreadCommon::QueueManager::master_event_all, &t, 5000);
_qm->send<Event>(ThreadCommon::QueueManager::master_event_all, &t, 0);
vTaskDelay(5000);
}
}