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
13
src/ble.rs
13
src/ble.rs
|
|
@ -120,20 +120,9 @@ pub async fn run(
|
|||
..
|
||||
} = stack.build();
|
||||
|
||||
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");
|
||||
}
|
||||
info!(
|
||||
"Starting advertising and GATT service for {}",
|
||||
features.join(",")
|
||||
crate::util::get_rx_feature_list().join(",")
|
||||
);
|
||||
let server = Server::new_with_config(GapConfig::Peripheral(PeripheralConfig {
|
||||
name: &name,
|
||||
|
|
|
|||
Loading…
Reference in a new issue