firmware/main: Disable the rotor unless TRACE_DEBUG

This commit is contained in:
Harald Welte 2016-03-20 15:15:34 +01:00
parent 5541e8a819
commit 04e37a8481
1 changed files with 2 additions and 0 deletions

View File

@ -132,9 +132,11 @@ extern int main(void)
TRACE_DEBUG("entering main loop...\n\r");
while (1) {
#if TRACE_LEVEL >= TRACE_LEVEL_DEBUG
const char rotor[] = { '-', '\\', '|', '/' };
putchar('\b');
putchar(rotor[i++ % ARRAY_SIZE(rotor)]);
#endif
if (USBD_GetState() < USBD_STATE_CONFIGURED) {