@@ -176,7 +176,7 @@ void common_hal_canio_can_construct(canio_can_obj_t *self, mcu_pin_obj_t *tx, mc
176176
177177 {
178178 CAN_TXBC_Type bc = {
179- .bit .TBSA = (uint32_t )self -> state -> tx_fifo ,
179+ .bit .TBSA = (uint32_t )self -> state -> tx_buffer ,
180180 .bit .NDTB = COMMON_HAL_CANIO_TX_FIFO_SIZE ,
181181 .bit .TFQM = 0 , // Messages are transmitted in the order submitted
182182 };
@@ -192,7 +192,7 @@ void common_hal_canio_can_construct(canio_can_obj_t *self, mcu_pin_obj_t *tx, mc
192192
193193 {
194194 CAN_GFC_Type gfc = {
195- .bit .RRFE = 1 ,
195+ .bit .RRFE = 0 ,
196196 .bit .ANFS = CAN_GFC_ANFS_REJECT_Val ,
197197 .bit .ANFE = CAN_GFC_ANFE_REJECT_Val ,
198198 };
@@ -333,13 +333,13 @@ void common_hal_canio_can_send(canio_can_obj_t *self, canio_message_obj_t *messa
333333 maybe_auto_restart (self );
334334
335335 // We have just one dedicated TX buffer, use it!
336- canio_can_fifo_t * ent = & self -> state -> tx_fifo [0 ];
336+ canio_can_tx_buffer_t * ent = & self -> state -> tx_buffer [0 ];
337337
338338 ent -> txb0 .bit .ESI = false;
339339 ent -> txb0 .bit .XTD = message -> extended ;
340340 ent -> txb0 .bit .RTR = message -> rtr ;
341341 if (message -> extended ) {
342- ent -> txb0 .bit .ID = message -> id << 18 ;
342+ ent -> txb0 .bit .ID = message -> id ;
343343 } else {
344344 ent -> txb0 .bit .ID = message -> id << 18 ; // short addresses are left-justified
345345 }
0 commit comments