common: Move panic handler out of libcommon.
[gps-watch.git] / src / bootloader / main.rs
index 815429ed1410645a15910edbc56eaac5a719bd11..2ce598050464a12deedb8c32c94153ca319f653e 100644 (file)
@@ -83,6 +83,13 @@ fn bootloader_requested() -> bool {
     false
 }
 
+#[inline(never)]
+#[panic_handler]
+fn panic(_info: &core::panic::PanicInfo) -> ! {
+    loop {
+    }
+}
+
 #[no_mangle]
 pub unsafe extern "C" fn _start() -> ! {
     watchdog::disable();