mirror of
https://github.com/saymrwulf/xous-core.git
synced 2026-11-16 08:38:26 +00:00
improve autoupdate work flow and error messaging
this is hopefully a work-around for #114 as well, assuming users actually read the message...
This commit is contained in:
parent
a5bcc50007
commit
fded17221f
2 changed files with 4 additions and 4 deletions
|
|
@ -192,10 +192,10 @@
|
|||
"en-tts": "Unplug the charging cable so I can reboot!"
|
||||
},
|
||||
"rootkeys.init.finished": {
|
||||
"en": "Rebooting now... ",
|
||||
"en": "Rebooting now...\n\nIf the system shows a 'No valid keys' error or hangs, insert a paperclip into the hole in the lower right hand edge and plug in power to reload the FPGA bitstream.",
|
||||
"ja": "再起動中...",
|
||||
"zh": "准备重启... ",
|
||||
"en-tts": "Rebooting now."
|
||||
"en-tts": "Rebooting now...\n\nIf the system shows a 'No valid keys' error or hangs, insert a paperclip into the hole in the lower right hand edge and plug in power to reload the FPGA bitstream."
|
||||
},
|
||||
"rootkeys.init.fail_verify": {
|
||||
"en": "Verification failed, aborting!",
|
||||
|
|
|
|||
|
|
@ -1278,11 +1278,11 @@ fn main() -> ! {
|
|||
}),
|
||||
Some(Opcode::TryNoKeySocUpdate) => msg_blocking_scalar_unpack!(msg, _, _, _, _, {
|
||||
if keys.try_nokey_soc_update(&mut rootkeys_modal, main_cid) {
|
||||
// this will unblock the status thread, but also pop up our reboot flow
|
||||
send_message(main_cid,
|
||||
xous::Message::new_scalar(Opcode::UxTryReboot.to_usize().unwrap(), 0, 0, 0, 0)
|
||||
).expect("couldn't initiate dialog box");
|
||||
xous::return_scalar(msg.sender, 1).unwrap();
|
||||
// the status flow remains blocked "forever", but that's ok -- we should be rebooting.
|
||||
// xous::return_scalar(msg.sender, 1).unwrap();
|
||||
} else {
|
||||
xous::return_scalar(msg.sender, 0).unwrap();
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue