diff --git a/include/heating.hpp b/include/heating.hpp index d99edd5..c98e11d 100644 --- a/include/heating.hpp +++ b/include/heating.hpp @@ -32,6 +32,10 @@ public: s_active = true; } + static auto StartFullEnergy() -> void { + pwm_set_pulse_dt(&s_pwm_spec, s_pwm_spec.period); + } + static auto Stop() -> void { s_active = false; k_timer_stop(&s_timer); diff --git a/src/main.cpp b/src/main.cpp index be19cb0..f407ce7 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -48,6 +48,7 @@ auto main(void) -> int { // auto wdt = app::WatchDogConfig{}; StatusLed::Flash(1s); ther::Com::Init(); + ther::HeatingPad::StartFullEnergy(); // ther::HeatingPad::Start(sensor_value{42, 0}); sensor_trigger tri{.type = SENSOR_TRIG_DATA_READY, .chan = SENSOR_CHAN_AMBIENT_TEMP};