diff --git a/esp-wifi/src/wifi/mod.rs b/esp-wifi/src/wifi/mod.rs index 681ea062..ba3c4a57 100644 --- a/esp-wifi/src/wifi/mod.rs +++ b/esp-wifi/src/wifi/mod.rs @@ -1059,13 +1059,11 @@ impl<'d> WifiController<'d> { Ok(()) } - #[allow(unused)] - fn is_sta_enabled(&self) -> Result { + pub fn is_sta_enabled(&self) -> Result { WifiMode::try_from(&self.config).map(|m| m.is_sta()) } - #[allow(unused)] - fn is_ap_enabled(&self) -> Result { + pub fn is_ap_enabled(&self) -> Result { WifiMode::try_from(&self.config).map(|m| m.is_ap()) }