screen: Make screen feature work without spat, update splash screen
This commit is contained in:
parent
6991ff5ec5
commit
0bf9e552ff
3 changed files with 86 additions and 34 deletions
17
src/util.rs
17
src/util.rs
|
|
@ -12,8 +12,21 @@ pub(crate) fn get_rx_feature_list() -> Vec<&'static str> {
|
|||
features.push("denm");
|
||||
}
|
||||
if cfg!(feature = "spat") {
|
||||
features.push("mapem");
|
||||
features.push("spatem");
|
||||
features.push("map");
|
||||
features.push("spat");
|
||||
}
|
||||
|
||||
features
|
||||
}
|
||||
|
||||
#[allow(unused)]
|
||||
pub(crate) fn get_tx_feature_list() -> Vec<&'static str> {
|
||||
let mut features = alloc::vec![];
|
||||
if cfg!(feature = "cam_tx") {
|
||||
features.push("auto-cam");
|
||||
}
|
||||
if cfg!(feature = "uart") {
|
||||
features.push("uart-tx");
|
||||
}
|
||||
|
||||
features
|
||||
|
|
|
|||
Loading…
Reference in a new issue