firmware/main: Disable the rotor unless TRACE_DEBUG

This commit is contained in:
Harald Welte committed 2016-03-20 15:18:03 +01:00
1 parent 5541e8a819
commit 04e37a8481
1 file changed
+2
+2
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) {