From 831486c3b670409ce70f04acc6050a315b234d4a Mon Sep 17 00:00:00 2001 From: _index Date: Fri, 27 Dec 2024 18:08:43 +0100 Subject: [PATCH] fix typo --- src/wifi.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/wifi.rs b/src/wifi.rs index e99cadcaf30..498570d5654 100644 --- a/src/wifi.rs +++ b/src/wifi.rs @@ -1197,7 +1197,7 @@ impl<'d> WifiDriver<'d> { /// When promiscuous mode is enabled, the driver captures all Wifi frames /// on the network, regardless of their destination MAC address. This is useful for /// debugging or monitoring purposes. - pub fn set_promisucous(&mut self, state: bool) -> Result<(), EspError> { + pub fn set_promiscuous(&mut self, state: bool) -> Result<(), EspError> { esp!(unsafe { esp_wifi_set_promiscuous(state) })?; if state { @@ -1217,7 +1217,7 @@ impl<'d> WifiDriver<'d> { Ok(en) } - + //TODO: add safe wrappers for these three functions //https://docs.esp-rs.org/esp-idf-sys/esp_idf_sys/fn.esp_wifi_set_promiscuous_ctrl_filter.html //https://docs.esp-rs.org/esp-idf-sys/esp_idf_sys/fn.esp_wifi_set_promiscuous_filter.html