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 3054904768
commit 8974b812f2

View file

@ -563,6 +563,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);
} }
} }