# HG changeset patch # User Mychaela Falconia # Date 1730158990 0 # Node ID 8b49ea8aeb9998f8f6bcda589d485d704c5967d8 # Parent f908a782cff9720407080e6f9e3bc0c43a212ca8 fc-mcsi-rxtx: more reliable fflush(stdout) in main loop diff -r f908a782cff9 -r 8b49ea8aeb99 sw/mcsi-rxtx/mainloop.c --- a/sw/mcsi-rxtx/mainloop.c Mon Oct 28 07:25:31 2024 +0000 +++ b/sw/mcsi-rxtx/mainloop.c Mon Oct 28 23:43:10 2024 +0000 @@ -22,9 +22,7 @@ unsigned off; int cc; - is_active = 0; - off = 0; - for (;;) { + for (off = 0; ; fflush(stdout)) { FD_ZERO(&fds); FD_SET(0, &fds); FD_SET(target_fd, &fds); @@ -75,6 +73,5 @@ transmit_20ms_block(); } } - fflush(stdout); } }