ble: Move feature listing to own module
This commit is contained in:
parent
9d2a8d31e7
commit
6991ff5ec5
3 changed files with 22 additions and 12 deletions
20
src/util.rs
Normal file
20
src/util.rs
Normal file
|
|
@ -0,0 +1,20 @@
|
|||
//! Some stuff used at several places
|
||||
|
||||
use alloc::vec::Vec;
|
||||
|
||||
#[allow(unused)]
|
||||
pub(crate) fn get_rx_feature_list() -> Vec<&'static str> {
|
||||
let mut features = alloc::vec![];
|
||||
if cfg!(feature = "cam") {
|
||||
features.push("cam");
|
||||
}
|
||||
if cfg!(feature = "denm") {
|
||||
features.push("denm");
|
||||
}
|
||||
if cfg!(feature = "spat") {
|
||||
features.push("mapem");
|
||||
features.push("spatem");
|
||||
}
|
||||
|
||||
features
|
||||
}
|
||||
Loading…
Reference in a new issue