mirror of
https://github.com/saymrwulf/xous-core.git
synced 2026-11-16 08:38:26 +00:00
add power-on indicator for tts mode
This commit is contained in:
parent
5d754efc07
commit
b1f8c1ea1b
1 changed files with 12 additions and 0 deletions
|
|
@ -363,6 +363,18 @@ fn xmain() -> ! {
|
|||
log::debug!("subscribe to wifi updates");
|
||||
netmgr.wifi_state_subscribe(cb_cid, StatusOpcode::WifiStats.to_u32().unwrap()).unwrap();
|
||||
let mut wifi_status: WlanStatus = WlanStatus::from_ipc(WlanStatusIpc::default());
|
||||
|
||||
#[cfg(feature="tts")]
|
||||
thread::spawn({
|
||||
move || {
|
||||
// indicator of boot-up for blind users
|
||||
let tt = ticktimer_server::Ticktimer::new().unwrap();
|
||||
tt.sleep_ms(1500).unwrap();
|
||||
let xns = xous_names::XousNames::new().unwrap();
|
||||
let llio = llio::Llio::new(&xns);
|
||||
llio.vibe(llio::VibePattern::Double).unwrap();
|
||||
}
|
||||
});
|
||||
log::info!("|status: starting main loop"); // don't change this -- factory test looks for this exact string
|
||||
loop {
|
||||
let msg = xous::receive_message(status_sid).unwrap();
|
||||
|
|
|
|||
Loading…
Reference in a new issue