WIP screen: Different slash screen for
This commit is contained in:
parent
b079b509ae
commit
95c2376caf
2 changed files with 37 additions and 29 deletions
|
|
@ -58,6 +58,7 @@ mod io;
|
||||||
mod screen;
|
mod screen;
|
||||||
#[cfg(feature = "gnss_ubx")]
|
#[cfg(feature = "gnss_ubx")]
|
||||||
mod ubx;
|
mod ubx;
|
||||||
|
mod util;
|
||||||
|
|
||||||
const WIFI_CHANNEL: radio::Channel = 180;
|
const WIFI_CHANNEL: radio::Channel = 180;
|
||||||
const WIFI_TXPOWER: i8 = 10; // dBm, 2..20
|
const WIFI_TXPOWER: i8 = 10; // dBm, 2..20
|
||||||
|
|
|
||||||
|
|
@ -614,6 +614,8 @@ where
|
||||||
|
|
||||||
self.clear_all()?;
|
self.clear_all()?;
|
||||||
|
|
||||||
|
#[cfg(feature = "spat")]
|
||||||
|
{
|
||||||
let sig_width = i32::from(self.size.width) / 3;
|
let sig_width = i32::from(self.size.width) / 3;
|
||||||
let circle_dia = 50;
|
let circle_dia = 50;
|
||||||
let circle_margin = (sig_width - circle_dia) / 2;
|
let circle_margin = (sig_width - circle_dia) / 2;
|
||||||
|
|
@ -649,6 +651,11 @@ where
|
||||||
text::Alignment::Center,
|
text::Alignment::Center,
|
||||||
)
|
)
|
||||||
.draw(&mut self.target)?;
|
.draw(&mut self.target)?;
|
||||||
|
}
|
||||||
|
|
||||||
|
// show features
|
||||||
|
let enabled_features = crate::util::get_rx_feature_list();
|
||||||
|
let enabled_tx_features = crate::util::get_tx_feature_list();
|
||||||
|
|
||||||
Ok(())
|
Ok(())
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue