mirror of
https://gitea.osmocom.org/sim-card/simtrace2.git
synced 2026-03-16 21:28:33 +03:00
main: rotor: erase immediately after send
- improves trace diagnostic output by moving cursor back over the the rotor before a diagnostic message has a chance to be printed. there is still a race condition, but it is much better. Change-Id: Iad7767f2a5dbbd67b0f33b9bfc2c3864ce308990
This commit is contained in:
@@ -194,8 +194,8 @@ extern int main(void)
|
|||||||
WDT_Restart(WDT);
|
WDT_Restart(WDT);
|
||||||
#if TRACE_LEVEL >= TRACE_LEVEL_DEBUG
|
#if TRACE_LEVEL >= TRACE_LEVEL_DEBUG
|
||||||
const char rotor[] = { '-', '\\', '|', '/' };
|
const char rotor[] = { '-', '\\', '|', '/' };
|
||||||
putchar('\b');
|
|
||||||
putchar(rotor[i++ % ARRAY_SIZE(rotor)]);
|
putchar(rotor[i++ % ARRAY_SIZE(rotor)]);
|
||||||
|
putchar('\b');
|
||||||
#endif
|
#endif
|
||||||
check_exec_dbg_cmd();
|
check_exec_dbg_cmd();
|
||||||
osmo_timers_prepare();
|
osmo_timers_prepare();
|
||||||
|
|||||||
Reference in New Issue
Block a user