Skip to content

Commit

Permalink
Fix off by one error in stepgen table length
Browse files Browse the repository at this point in the history
  • Loading branch information
pcw-mesa committed Jul 31, 2020
1 parent 8ed8288 commit 4d14062
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/hal/drivers/mesa-hostmot2/stepgen.c
Expand Up @@ -382,7 +382,7 @@ static void hm2_stepgen_update_mode(hostmot2_t *hm2, int i) {
}

hm2->stepgen.mode_reg[i] = 3;
buff = inst->hal.param.step_type;
buff = inst->hal.param.step_type -1;
hm2->llio->write(hm2->llio, hm2->stepgen.table_sequence_length_addr
+ (i * sizeof(rtapi_u32)), &buff, sizeof(rtapi_u32));
}
Expand Down

0 comments on commit 4d14062

Please sign in to comment.