Skip to content

Commit

Permalink
fix typo
Browse files Browse the repository at this point in the history
  • Loading branch information
indexds committed Dec 27, 2024
1 parent 1a8602b commit 831486c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/wifi.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand All @@ -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
Expand Down

0 comments on commit 831486c

Please sign in to comment.