mirror of
https://gitea.osmocom.org/sim-card/simtrace2.git
synced 2026-03-24 17:28:32 +03:00
firmware/main: Disable the rotor unless TRACE_DEBUG
This commit is contained in:
@@ -132,9 +132,11 @@ extern int main(void)
|
|||||||
|
|
||||||
TRACE_DEBUG("entering main loop...\n\r");
|
TRACE_DEBUG("entering main loop...\n\r");
|
||||||
while (1) {
|
while (1) {
|
||||||
|
#if TRACE_LEVEL >= TRACE_LEVEL_DEBUG
|
||||||
const char rotor[] = { '-', '\\', '|', '/' };
|
const char rotor[] = { '-', '\\', '|', '/' };
|
||||||
putchar('\b');
|
putchar('\b');
|
||||||
putchar(rotor[i++ % ARRAY_SIZE(rotor)]);
|
putchar(rotor[i++ % ARRAY_SIZE(rotor)]);
|
||||||
|
#endif
|
||||||
|
|
||||||
if (USBD_GetState() < USBD_STATE_CONFIGURED) {
|
if (USBD_GetState() < USBD_STATE_CONFIGURED) {
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user