1
0
forked from M-Labs/kirdy

ld_drive: add setup fn

This commit is contained in:
linuswck 2024-01-09 16:13:42 +08:00
parent b1123047c7
commit be8bf0a8b6

View File

@ -71,6 +71,12 @@ impl LD_Drive{
}
}
pub fn setup(&mut self) {
self.power_down();
self.ld_set_i(ElectricCurrent::new::<milliampere>(0.0));
self.ld_short();
}
pub fn power_up(&mut self){
self.ctrl.power_up();
}