From bbc129a736f6df387c61390dae07874e7609f6ec Mon Sep 17 00:00:00 2001 From: Josh Guilfoyle Date: Tue, 14 Feb 2023 03:54:03 -0800 Subject: [PATCH] Fix panic when using esp_dpp due to non-exhaustive WifiEvent match (#226) WIFI_EVENT_ROC_DONE specifically was missing and is used by esp_dpp. Causes a panic when calling esp_supp_dpp_start_listen(); --- src/wifi.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/wifi.rs b/src/wifi.rs index 46ea5728d5c..c91f2602bb2 100644 --- a/src/wifi.rs +++ b/src/wifi.rs @@ -1272,6 +1272,8 @@ impl EspTypedEventDeserializer 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); };