We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9b6ebd6 commit ff6f165Copy full SHA for ff6f165
1 file changed
src/main.c
@@ -1455,9 +1455,11 @@ static void refloat_thd(void *arg) {
1455
break;
1456
}
1457
1458
- motor_control_apply(
1459
- &d->motor_control, d->motor.abs_erpm_smooth, d->state.state, d->current_time
1460
- );
+ if (d->state.state != STATE_DISABLED) {
+ motor_control_apply(
+ &d->motor_control, d->motor.abs_erpm_smooth, d->state.state, d->current_time
1461
+ );
1462
+ }
1463
VESC_IF->sleep_us(d->loop_time_us);
1464
1465
0 commit comments