temperature: Sensor-specific handling. Proper delay.
This commit is contained in:
parent
1ce12cfd02
commit
85520b6fad
@ -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()
|
||||
|
||||
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user