From: Tilman Sauerbeck Date: Mon, 1 Jul 2019 18:01:43 +0000 (+0200) Subject: bootloader: Call into the bootloader module from main(). X-Git-Url: http://git.code-monkey.de/?a=commitdiff_plain;h=0f94967856f0e0c4b2888c9de77abe64c5359b49;p=gps-watch.git bootloader: Call into the bootloader module from main(). --- diff --git a/src/bootloader/main.rs b/src/bootloader/main.rs index 16255f6..e7746c0 100644 --- a/src/bootloader/main.rs +++ b/src/bootloader/main.rs @@ -28,6 +28,7 @@ extern crate common; mod flash; +mod bootloader; use common::clock; use common::usb_serial; @@ -39,7 +40,10 @@ pub unsafe extern fn main() { if true { usb_serial::init(); + let mut b = bootloader::Bootloader::new(); + loop { + b.run(); } } }