1
0
Fork 0

ld: cleanup

This commit is contained in:
linuswck 2024-02-01 16:28:25 +08:00
parent 172c3e1dfc
commit 3d3d6f5cb5
1 changed files with 1 additions and 1 deletions

View File

@ -133,7 +133,7 @@ impl LdDrive{
-Settings::LD_CURRENT_STEP_SIZE
};
for _ in (0..num_of_step.abs()).rev() {
for _ in 0..num_of_step.abs() {
prev_i_set = prev_i_set + current_step;
let _ = self.ctrl.set_i(prev_i_set, Settings::LD_DRIVE_TRANSIMPEDANCE, Settings::DAC_OUT_V_MAX);
sleep(Settings::LD_CURRENT_TIME_STEP_MS);