Skip to content

Commit dd9b188

Browse files
authored
Merge pull request #396 from machinekoder/fix-hm2-encoder
hm2/encoder: fix hal_pin access
2 parents e5e825a + 8c34475 commit dd9b188

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

  • src/modules/managed/drivers/hostmot2/hostmot2_core/src

src/modules/managed/drivers/hostmot2/hostmot2_core/src/encoder.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ static void hm2_encoder_update_control_register(hostmot2_t *hm2,
108108
);
109109

110110
do_flag(
111-
&hm2->encoder.control_reg[i],
111+
&encoder->control_reg[i],
112112
*e->hal.pin.index_mode,
113113
HM2_ENCODER_INDEX_MODE
114114
);

0 commit comments

Comments
 (0)