Skip to content

Commit 0109693

Browse files
committed
Changed CAN_PACKET_POLL_ROTOR_POS to respond with the controller id
1 parent c3f397a commit 0109693

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

comm_can.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1629,7 +1629,7 @@ static void decode_msg(uint32_t eid, uint8_t *data8, int len, bool is_replaced)
16291629
uint8_t buffer[4];
16301630
int32_t index = 0;
16311631
buffer_append_int32(buffer, (int32_t)(encoder_read_deg() * 100000.0), &index);
1632-
comm_can_transmit_eid_replace(data8[0] |
1632+
comm_can_transmit_eid_replace(app_get_configuration()->controller_id |
16331633
((uint32_t)CAN_PACKET_POLL_ROTOR_POS << 8), (uint8_t*)buffer, 4, true);
16341634
} break;
16351635

0 commit comments

Comments
 (0)