13 std::shared_ptr<option> tl_toggle) :
14 _monitor([this](
dispatcher::cancellable_timer cancellable_timer)
18 _poll_intervals_ms(2000),
19 _thermal_threshold_deg(2.
f),
22 _temperature_sensor(temp_option),
23 _tl_activation(tl_toggle)
60 bool tl_state = (std::fabs(tl_active->query()) > std::numeric_limits< float >::epsilon());
77 if( temp->is_enabled() )
79 auto cur_temp = temp->query();
83 << std::dec << std::setprecision( 1 ) <<
_temp_base <<
" to "
84 << cur_temp <<
" deg (C)" );
92 LOG_ERROR(
"Thermal Compensation: temperature sensor option is not present");
95 catch (
const std::exception& ex)
97 LOG_ERROR(
"Error during thermal compensation handling: " << ex.what());
101 LOG_ERROR(
"Unresolved error during Thermal Compensation handling");