Skip to content

Commit 0761b01

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 49f80b1 commit 0761b01

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
@@ -26,7 +26,7 @@ HRESULT Library_sys_dev_wifi_native_System_Device_Wifi_WifiAdapter::NativeSetDev
2626
CLR_RT_StackFrame &stack)
2727
{
2828
NANOCLR_HEADER();
29-
{
29+
#if defined(CONFIG_SOC_WIFI_SUPPORTED) || defined(CONFIG_SOC_WIRELESS_HOST_SUPPORTED)
3030
// Get deviceName from args
3131
const char *hostname = stack.Arg1().RecoverString();
3232
FAULT_ON_NULL(hostname);

0 commit comments

Comments
 (0)