mirror of
https://github.com/saymrwulf/xous-core.git
synced 2026-11-19 09:00:54 +00:00
fix hosted mode warnings
This commit is contained in:
parent
8f16270efa
commit
a40eba8199
3 changed files with 8 additions and 4 deletions
|
|
@ -431,6 +431,7 @@ pub fn wrapped_main(main_thread_token: MainThreadToken) -> ! {
|
||||||
let mut bw_thresh: u8 = 128;
|
let mut bw_thresh: u8 = 128;
|
||||||
let mut qr_request: Option<xous::MessageEnvelope> = None;
|
let mut qr_request: Option<xous::MessageEnvelope> = None;
|
||||||
let mut kbd_listeners: Vec<(CID, usize)> = Vec::new();
|
let mut kbd_listeners: Vec<(CID, usize)> = Vec::new();
|
||||||
|
#[allow(unused_mut)]
|
||||||
let mut orientation = DisplayOrientation::Normal;
|
let mut orientation = DisplayOrientation::Normal;
|
||||||
loop {
|
loop {
|
||||||
if !is_panic.load(Ordering::Relaxed) {
|
if !is_panic.load(Ordering::Relaxed) {
|
||||||
|
|
@ -521,6 +522,7 @@ pub fn wrapped_main(main_thread_token: MainThreadToken) -> ! {
|
||||||
}
|
}
|
||||||
GfxOpcode::KeyPress => {
|
GfxOpcode::KeyPress => {
|
||||||
if let Some(scalar) = msg.body.scalar_message() {
|
if let Some(scalar) = msg.body.scalar_message() {
|
||||||
|
#[cfg(not(feature = "hosted-baosec"))]
|
||||||
let k = char::from_u32(scalar.arg1 as u32).unwrap_or('\u{0000}');
|
let k = char::from_u32(scalar.arg1 as u32).unwrap_or('\u{0000}');
|
||||||
#[cfg(not(feature = "hosted-baosec"))]
|
#[cfg(not(feature = "hosted-baosec"))]
|
||||||
// ignore accelerometer reports
|
// ignore accelerometer reports
|
||||||
|
|
@ -975,6 +977,7 @@ pub fn wrapped_main(main_thread_token: MainThreadToken) -> ! {
|
||||||
xous::terminate_process(0)
|
xous::terminate_process(0)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#[allow(unused_variables)]
|
||||||
fn display_timeout_handler(udma_global: &UdmaGlobal, display: &mut Oled128x128) {
|
fn display_timeout_handler(udma_global: &UdmaGlobal, display: &mut Oled128x128) {
|
||||||
log::info!("resetting display spim block");
|
log::info!("resetting display spim block");
|
||||||
#[cfg(feature = "board-baosec")]
|
#[cfg(feature = "board-baosec")]
|
||||||
|
|
|
||||||
|
|
@ -134,6 +134,11 @@ impl<'a> Oled128x128 {
|
||||||
unimplemented!("devboot feature does not exist on this platform");
|
unimplemented!("devboot feature does not exist on this platform");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
pub fn flip_vertical(&mut self, _flip: bool) -> Result<(), xous::Error> {
|
||||||
|
log::warn!("flipping not implemented");
|
||||||
|
Ok(())
|
||||||
|
}
|
||||||
|
|
||||||
pub fn stash(&mut self) { self.stash.copy_from_slice(&self.buffer); }
|
pub fn stash(&mut self) { self.stash.copy_from_slice(&self.buffer); }
|
||||||
|
|
||||||
pub fn pop(&mut self) -> Result<(), xous::Error> {
|
pub fn pop(&mut self) -> Result<(), xous::Error> {
|
||||||
|
|
|
||||||
|
|
@ -134,8 +134,4 @@ fn main() {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
xns.unregister_server(sid).unwrap();
|
|
||||||
xous::destroy_server(sid).unwrap();
|
|
||||||
log::trace!("quitting");
|
|
||||||
xous::terminate_process(0)
|
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue