diff options
Diffstat (limited to 'stmhal/can.c')
| -rw-r--r-- | stmhal/can.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/stmhal/can.c b/stmhal/can.c index 9047e78ca..f3db98372 100644 --- a/stmhal/can.c +++ b/stmhal/can.c @@ -527,7 +527,7 @@ STATIC mp_obj_t pyb_can_recv(mp_uint_t n_args, const mp_obj_t *pos_args, mp_map_ // receive the data CanRxMsgTypeDef rx_msg; - self->can.pRxMsg = &rx_msg; + self->can.pRxMsg = self->can.pRx1Msg = &rx_msg; HAL_StatusTypeDef status = HAL_CAN_Receive(&self->can, args[0].u_int, args[1].u_int); if (status != HAL_OK) { |
