Skip to content

Commit 49f80b1

Browse files
Update targets/ESP32/_nanoCLR/System.Device.Wifi/sys_dev_wifi_native_System_Device_Wifi_WifiAdapter.cpp
Co-authored-by: José Simões <jose.simoes@eclo.solutions>
1 parent e90b443 commit 49f80b1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ HRESULT Library_sys_dev_wifi_native_System_Device_Wifi_WifiAdapter::NativeSetDev
4646
esp_err_t err = esp_netif_set_hostname(sta_netif, hostname);
4747
if (err != ESP_OK)
4848
{
49-
NANOCLR_SET_AND_LEAVE(CLR_E_FAIL);
49+
NANOCLR_SET_AND_LEAVE(CLR_E_INVALID_OPERATION);
5050
}
5151
}
5252
NANOCLR_NOCLEANUP();

0 commit comments

Comments
 (0)