Skip to content

Commit

Permalink
hall extension fix
Browse files Browse the repository at this point in the history
  • Loading branch information
vedderb committed Mar 31, 2022
1 parent 9b13c2c commit 4325ae1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lispBM/lispif_vesc_extensions.c
Original file line number Diff line number Diff line change
Expand Up @@ -1478,7 +1478,7 @@ static lbm_value ext_raw_hall(lbm_value *args, lbm_uint argn) {
int samples = mc_interface_get_configuration()->m_hall_extra_samples;

if (argn == 2) {
lbm_dec_i(args[1]);
samples = lbm_dec_i(args[1]);
}

if ((motor != 1 && motor != 2) || samples < 0 || samples > 20) {
Expand Down

0 comments on commit 4325ae1

Please sign in to comment.