From ea753bed178610380a0e1a437ac31fd348842a58 Mon Sep 17 00:00:00 2001 From: whitequark Date: Sat, 15 Apr 2017 07:29:21 +0000 Subject: [PATCH] runtime: advise to set panic_reboot=1 on panic. --- artiq/firmware/runtime/lib.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/artiq/firmware/runtime/lib.rs b/artiq/firmware/runtime/lib.rs index 168057590..b84e5976a 100644 --- a/artiq/firmware/runtime/lib.rs +++ b/artiq/firmware/runtime/lib.rs @@ -180,6 +180,8 @@ pub extern fn panic_fmt(args: core::fmt::Arguments, file: &'static str, line: u3 println!("rebooting..."); unsafe { board::boot::reboot() } } else { + println!("halting."); + println!("use `artiq_coreconfig write -s panic_reboot 1` to reboot instead"); loop {} } }