bootloader: Stop USB serial device before entering the application.
authorTilman Sauerbeck <tilman@code-monkey.de>
Tue, 9 Jul 2019 17:44:36 +0000 (19:44 +0200)
committerTilman Sauerbeck <tilman@code-monkey.de>
Sun, 5 Jan 2020 19:38:11 +0000 (20:38 +0100)
Try to provide a clean slate to the application.

src/bootloader/main.rs

index 8c6f149e19534d93326a7df4abf290a8a37044ed..1a0a7cc3d53ebdf1194ec88bd11a3eec541837c7 100644 (file)
@@ -84,6 +84,8 @@ pub unsafe extern fn main() {
 
         while b.run() || application_missing() {
         }
+
+        usb_serial::shutdown();
     }
 
     jump_to_application(APPLICATION_ADDR);