Skip to content

Commit

Permalink
Are you kidding? (use correct usart index)
Browse files Browse the repository at this point in the history
  • Loading branch information
calc84maniac authored and adriweb committed Nov 14, 2024
1 parent 9d8ecee commit e9a822d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/arm/arm.c
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ static int arm_thrd(void *context) {
}
if (unlikely(spsc_queue_flush(&arm->usart[1]) &&
arm_mem_usart_send(arm, 3, &val))) {
bool success = spsc_queue_enqueue(&arm->usart[0], val);
bool success = spsc_queue_enqueue(&arm->usart[1], val);
(void)success;
assert(success && "Already successfully flushed, so can't fail");
}
Expand Down

0 comments on commit e9a822d

Please sign in to comment.