Skip to content

Commit

Permalink
[Ameba] add wifi wrapper to fix build issue
Browse files Browse the repository at this point in the history
* [Ameba] add wifi wrapper to fix build issue
  • Loading branch information
pankore committed Mar 22, 2024
1 parent 9b8106b commit 8b93bf6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/platform/Ameba/NetworkCommissioningWiFiDriver.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ CHIP_ERROR AmebaWiFiDriver::ConnectWiFiNetwork(const char * ssid, uint8_t ssidLe
{
CHIP_ERROR err = CHIP_NO_ERROR;
bool connected;

#if CHIP_DEVICE_CONFIG_ENABLE_WIFI
// If device is already connected to WiFi, then disconnect the WiFi,
chip::DeviceLayer::Internal::AmebaUtils::IsStationConnected(connected);
if (connected)
Expand Down Expand Up @@ -159,7 +159,7 @@ CHIP_ERROR AmebaWiFiDriver::ConnectWiFiNetwork(const char * ssid, uint8_t ssidLe
ConnectivityMgrImpl().ChangeWiFiStationState(state);
chip::DeviceLayer::Internal::AmebaUtils::WiFiConnect(ssid, key);
});

#endif
return err;
}

Expand Down

0 comments on commit 8b93bf6

Please sign in to comment.