boot: Change thermostat boot seq for new setup seq

- Power Up -> Calibrate -> Set the TEC current to some value
master
linuswck 2024-01-09 17:03:06 +08:00
parent 27c7b5929e
commit 654964831a
1 changed files with 3 additions and 1 deletions

View File

@ -73,8 +73,10 @@ pub fn bootup(
let mut thermostat = Thermostat::new(tec_driver);
thermostat.setup();
thermostat.set_i(ElectricCurrent::new::<ampere>(1.0));
thermostat.power_up();
thermostat.calibrate_dac_value();
thermostat.set_i(ElectricCurrent::new::<ampere>(1.0));
let mut wd = IndependentWatchdog::new(perif.IWDG);
wd.start(WATCHDOG_PERIOD.millis());