Skip to content

Commit

Permalink
Fix panic when using esp_dpp due to non-exhaustive WifiEvent match (#226
Browse files Browse the repository at this point in the history
)

WIFI_EVENT_ROC_DONE specifically was missing and is used by esp_dpp.
Causes a panic when calling esp_supp_dpp_start_listen();
  • Loading branch information
jasta authored Feb 14, 2023
1 parent 2f9f139 commit bbc129a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/wifi.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1272,6 +1272,8 @@ impl EspTypedEventDeserializer<WifiEvent> for WifiEvent {
WifiEvent::ActionTxStatus
} else if event_id == wifi_event_t_WIFI_EVENT_STA_BEACON_TIMEOUT {
WifiEvent::StaBeaconTimeout
} else if event_id == wifi_event_t_WIFI_EVENT_ROC_DONE {
WifiEvent::RocDone
} else {
panic!("Unknown event ID: {}", event_id);
};
Expand Down

0 comments on commit bbc129a

Please sign in to comment.