mirror of
https://github.com/saymrwulf/xous-core.git
synced 2026-11-16 08:38:26 +00:00
have status point to the USB crate for USB checkup
This commit is contained in:
parent
78611f97c4
commit
c7f9688b5f
2 changed files with 4 additions and 2 deletions
|
|
@ -26,6 +26,7 @@ modals = {path = "../modals"}
|
|||
pddb = {path = "../pddb"}
|
||||
net = {path = "../net"}
|
||||
keyboard = {path = "../keyboard"}
|
||||
usb-device-xous = {path="../usb-device-xous"}
|
||||
|
||||
num-derive = {version = "0.3.3", default-features = false}
|
||||
num-traits = {version = "0.2.14", default-features = false}
|
||||
|
|
|
|||
|
|
@ -217,9 +217,10 @@ fn xmain() -> ! {
|
|||
};
|
||||
|
||||
let llio = llio::Llio::new(&xns);
|
||||
let usb_hid = usb_device_xous::UsbHid::new();
|
||||
|
||||
log::debug!("usb unlock notice...");
|
||||
let (dl, _) = llio.debug_usb(None).unwrap();
|
||||
let (dl, _) = usb_hid.debug_usb(None).unwrap();
|
||||
let mut debug_locked = dl;
|
||||
// build security status textview
|
||||
let mut security_tv = TextView::new(
|
||||
|
|
@ -444,7 +445,7 @@ fn xmain() -> ! {
|
|||
}
|
||||
|
||||
// update the security status, if any
|
||||
let (is_locked, force_update) = llio.debug_usb(None).unwrap();
|
||||
let (is_locked, force_update) = usb_hid.debug_usb(None).unwrap();
|
||||
if (debug_locked != is_locked)
|
||||
|| force_update || secnotes_force_redraw
|
||||
|| sec_notes.lock().unwrap().len() != last_sec_note_size
|
||||
|
|
|
|||
Loading…
Reference in a new issue