boot: Change thermostat boot seq for new setup seq
- Power Up -> Calibrate -> Set the TEC current to some value
This commit is contained in:
parent
27c7b5929e
commit
654964831a
|
@ -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());
|
||||
|
|
Loading…
Reference in New Issue