1
0
forked from M-Labs/kirdy

boot: Change thermostat boot seq for new setup seq

- Power Up -> Calibrate -> Set the TEC current to some value
This commit is contained in:
linuswck 2024-01-09 17:03:06 +08:00
parent 27c7b5929e
commit 654964831a

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());