mirror of
https://github.com/saymrwulf/xous-core.git
synced 2026-11-20 09:03:28 +00:00
when connecting to debug core, enable programming
This commit is contained in:
parent
4fcc1ea173
commit
5d874ac0f3
1 changed files with 2 additions and 1 deletions
|
|
@ -31,7 +31,8 @@ impl<'a> ShellCmdApi<'a> for Usb {
|
||||||
}
|
}
|
||||||
"debug" => {
|
"debug" => {
|
||||||
self.usb_dev.switch_to_core(usb_device_xous::UsbDeviceType::Debug).unwrap();
|
self.usb_dev.switch_to_core(usb_device_xous::UsbDeviceType::Debug).unwrap();
|
||||||
write!(ret, "USB connected to Debug core").unwrap();
|
self.usb_dev.debug_usb(Some(false)).unwrap();
|
||||||
|
write!(ret, "USB connected to Debug core, secrets readable!").unwrap();
|
||||||
}
|
}
|
||||||
"send" => {
|
"send" => {
|
||||||
match self.usb_dev.get_current_core() {
|
match self.usb_dev.get_current_core() {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue