Prevent too tight loop on the 1st core

This commit is contained in:
Jan Hamal Dvořák 2024-07-22 19:39:40 +02:00
parent 558c3a0a41
commit f45d343c8c

View file

@ -598,6 +598,8 @@ static void do_rx()
if (queue_try_remove(&iq_queue, &block)) { if (queue_try_remove(&iq_queue, &block)) {
fwrite(block, IQ_BLOCK_LEN, 1, stdout); fwrite(block, IQ_BLOCK_LEN, 1, stdout);
fflush(stdout); fflush(stdout);
} else {
sleep_us(25);
} }
} }