Skip to content

Commit

Permalink
can: ignore aborting messages in inner priority inversion algorithm
Browse files Browse the repository at this point in the history
  • Loading branch information
jschall committed Jan 14, 2020
1 parent 28cabb3 commit 426e910
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/can/can.c
Original file line number Diff line number Diff line change
Expand Up @@ -460,7 +460,7 @@ static void can_try_enqueue_waiting_frame_I(struct can_instance_s* instance) {
if (instance->tx_mailbox[i].state == CAN_TX_MAILBOX_EMPTY) {
have_empty_mailbox = true;
empty_mailbox_idx = i;
} else if (instance->tx_mailbox[i].state == CAN_TX_MAILBOX_PENDING || instance->tx_mailbox[i].state == CAN_TX_MAILBOX_ABORTING) {
} else if (instance->tx_mailbox[i].state == CAN_TX_MAILBOX_PENDING) {
can_frame_priority_t prio = can_get_tx_frame_priority_X(instance->tx_mailbox[i].frame);
if (!have_pending_mailbox || prio > highest_prio_pending) {
highest_prio_pending = prio;
Expand Down

0 comments on commit 426e910

Please sign in to comment.