]> mj.ucw.cz Git - home-hw.git/blobdiff - lib/dfu-bootloader.c
README
[home-hw.git] / lib / dfu-bootloader.c
index 1d7e02e5f8bc099a843e7ff923eba6027e7e2681..3df8351aad66e50098d281f6f519eea1cc0a3737 100644 (file)
@@ -451,8 +451,7 @@ restart: ;
        DEBUG("DFU: Boot (sp=%08x pc=%08x)\n", (uint) sp, (uint) pc);
 
 #ifdef DEBUG_USART
-       while (!usart_get_flag(DEBUG_USART, USART_FLAG_TC))
-               ;
+       debug_flush();
 #endif
        debug_led(0);