Skip to content

Commit c2a1afa

Browse files
authored
Merge pull request #18606 from jan-mo/fix/20220916__core_msg_queue_print_restore_irq
core/msg.c: irq was not restored properly
2 parents d47b685 + e0febd0 commit c2a1afa

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

core/msg.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -492,6 +492,7 @@ void msg_queue_print(void)
492492

493493
if (msg_counter < 1) {
494494
/* no msg queue */
495+
irq_restore(state);
495496
printf("No messages or no message queue\n");
496497
return;
497498
}

0 commit comments

Comments
 (0)