Skip to content

Commit 8b93bf6

Browse files
committed
[Ameba] add wifi wrapper to fix build issue
* [Ameba] add wifi wrapper to fix build issue
1 parent 9b8106b commit 8b93bf6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/platform/Ameba/NetworkCommissioningWiFiDriver.cpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ CHIP_ERROR AmebaWiFiDriver::ConnectWiFiNetwork(const char * ssid, uint8_t ssidLe
128128
{
129129
CHIP_ERROR err = CHIP_NO_ERROR;
130130
bool connected;
131-
131+
#if CHIP_DEVICE_CONFIG_ENABLE_WIFI
132132
// If device is already connected to WiFi, then disconnect the WiFi,
133133
chip::DeviceLayer::Internal::AmebaUtils::IsStationConnected(connected);
134134
if (connected)
@@ -159,7 +159,7 @@ CHIP_ERROR AmebaWiFiDriver::ConnectWiFiNetwork(const char * ssid, uint8_t ssidLe
159159
ConnectivityMgrImpl().ChangeWiFiStationState(state);
160160
chip::DeviceLayer::Internal::AmebaUtils::WiFiConnect(ssid, key);
161161
});
162-
162+
#endif
163163
return err;
164164
}
165165

0 commit comments

Comments
 (0)