Skip to content

Commit 704216f

Browse files
alberk8aromaa
authored andcommitted
Fix wrong exception with Wi-Fi Scan (#2489)
***NO_CI***
1 parent fc4f9f7 commit 704216f

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

targets/ESP32/_nanoCLR/System.Device.Wifi/sys_dev_wifi_native_System_Device_Wifi_WifiAdapter.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -192,6 +192,9 @@ HRESULT Library_sys_dev_wifi_native_System_Device_Wifi_WifiAdapter::NativeScanAs
192192

193193
switch (startScanResult)
194194
{
195+
case StartScanOutcome_Success:
196+
NANOCLR_SET_AND_LEAVE(S_OK);
197+
break;
195198

196199
case StartScanOutcome_WrongInterfaceType:
197200
case StartScanOutcome_Esp32WifiNotInit:

0 commit comments

Comments
 (0)