Skip to content

Commit

Permalink
fixed lisp set_current and set_current_rel not resetting timeout
Browse files Browse the repository at this point in the history
causing stuttering
1zun4 committed Jul 30, 2022
1 parent 805006f commit 0a7d7d5
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lispBM/lispif_vesc_extensions.c
Original file line number Diff line number Diff line change
@@ -991,6 +991,7 @@ static lbm_value ext_app_adc_override(lbm_value *args, lbm_uint argn) {

static lbm_value ext_set_current(lbm_value *args, lbm_uint argn) {
CHECK_NUMBER_ALL();
timeout_reset();

if (argn == 1) {
mc_interface_set_current(lbm_dec_as_float(args[0]));
@@ -1006,6 +1007,7 @@ static lbm_value ext_set_current(lbm_value *args, lbm_uint argn) {

static lbm_value ext_set_current_rel(lbm_value *args, lbm_uint argn) {
CHECK_NUMBER_ALL();
timeout_reset();

if (argn == 1) {
mc_interface_set_current_rel(lbm_dec_as_float(args[0]));

0 comments on commit 0a7d7d5

Please sign in to comment.