|
|
@@ -622,8 +622,9 @@ static void mc_autohold_process(void) {
|
|
|
motor.n_autohold_time = get_tick_ms();
|
|
|
}else {
|
|
|
if (get_delta_ms(motor.n_autohold_time) >= CONFIG_AUTOHOLD_DETECT_TIME) {
|
|
|
- mc_auto_hold(true);
|
|
|
- shark_timer_post(&_autohold_beep_timer, 0);
|
|
|
+ if (mc_auto_hold(true)) {
|
|
|
+ shark_timer_post(&_autohold_beep_timer, 0);
|
|
|
+ }
|
|
|
}
|
|
|
}
|
|
|
}else {
|