diff --git a/src/device/boot.rs b/src/device/boot.rs index 2d2c158..d48e41e 100644 --- a/src/device/boot.rs +++ b/src/device/boot.rs @@ -73,8 +73,10 @@ pub fn bootup( let mut thermostat = Thermostat::new(tec_driver); thermostat.setup(); - thermostat.set_i(ElectricCurrent::new::(1.0)); + thermostat.power_up(); + thermostat.calibrate_dac_value(); + thermostat.set_i(ElectricCurrent::new::(1.0)); let mut wd = IndependentWatchdog::new(perif.IWDG); wd.start(WATCHDOG_PERIOD.millis());