Skip to content

Commit

Permalink
Fix typo in ble feature name (#297)
Browse files Browse the repository at this point in the history
The `initialize` function checks if wifi and ble are enable simultaneously without coex, but it was mistakenly using `feature = bluetooth` instead of `feature = ble`. This meant the check was actually never compiled in.
  • Loading branch information
plietar authored Oct 20, 2023
1 parent 2d16c3b commit d275696
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion esp-wifi/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -247,7 +247,7 @@ pub fn initialize(
radio_clocks: hal::system::RadioClockControl,
clocks: &Clocks,
) -> Result<EspWifiInitialization, InitializationError> {
#[cfg(all(not(coex), feature = "wifi", feature = "bluetooth"))]
#[cfg(all(not(coex), feature = "wifi", feature = "ble"))]
if init_for == EspWifiInitFor::WifiBle {
panic!("Trying to use Wifi and BLE without COEX feature");
}
Expand Down

0 comments on commit d275696

Please sign in to comment.