Skip to content

Commit

Permalink
Restyled by clang-format
Browse files Browse the repository at this point in the history
  • Loading branch information
restyled-commits authored and wqx6 committed Mar 5, 2024
1 parent d21a419 commit 5fd680b
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 7 deletions.
3 changes: 2 additions & 1 deletion src/platform/ESP32/ConnectivityManagerImpl_Ethernet.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,8 @@ void ConnectivityManagerImpl::OnEthernetPlatformEvent(const ChipDeviceEvent * ev
{
if (event->Type == DeviceEventType::kESPSystemEvent)
{
if (event->Platform.ESPSystemEvent.Base == IP_EVENT) {
if (event->Platform.ESPSystemEvent.Base == IP_EVENT)
{
switch (event->Platform.ESPSystemEvent.Id)
{
case IP_EVENT_ETH_GOT_IP:
Expand Down
13 changes: 7 additions & 6 deletions src/platform/ESP32/ESP32DnssdImpl.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -346,7 +346,8 @@ static CHIP_ERROR OnBrowseDone(BrowseContext * ctx)
#if CHIP_DEVICE_CONFIG_ENABLE_WIFI
Inet::InterfaceId(DeviceLayer::Internal::ESP32Utils::GetStationNetif());
#elif CHIP_DEVICE_CONFIG_ENABLE_ETHERNET
Inet::InterfaceId(DeviceLayer::Internal::ESP32Utils::GetNetif(DeviceLayer::Internal::ESP32Utils::kDefaultEthernetNetifKey));
Inet::InterfaceId(DeviceLayer::Internal::ESP32Utils::GetNetif(
DeviceLayer::Internal::ESP32Utils::kDefaultEthernetNetifKey));
#endif
}
}
Expand Down Expand Up @@ -445,7 +446,8 @@ static CHIP_ERROR ParseSrvResult(ResolveContext * ctx)
#if CHIP_DEVICE_CONFIG_ENABLE_WIFI
Inet::InterfaceId(DeviceLayer::Internal::ESP32Utils::GetStationNetif());
#elif CHIP_DEVICE_CONFIG_ENABLE_ETHERNET
Inet::InterfaceId(DeviceLayer::Internal::ESP32Utils::GetNetif(DeviceLayer::Internal::ESP32Utils::kDefaultEthernetNetifKey));
Inet::InterfaceId(
DeviceLayer::Internal::ESP32Utils::GetNetif(DeviceLayer::Internal::ESP32Utils::kDefaultEthernetNetifKey));
#endif
}
}
Expand Down Expand Up @@ -624,8 +626,8 @@ static void MdnsQueryNotifier(mdns_search_once_t * searchHandle)
}

CHIP_ERROR EspDnssdBrowse(const char * type, DnssdServiceProtocol protocol, chip::Inet::IPAddressType addressType,
chip::Inet::InterfaceId interface, DnssdBrowseCallback callback, void * context,
intptr_t * browseIdentifier)
chip::Inet::InterfaceId interface, DnssdBrowseCallback callback, void * context,
intptr_t * browseIdentifier)
{
CHIP_ERROR error = CHIP_NO_ERROR;
mdns_search_once_t * queryHandle =
Expand All @@ -651,8 +653,7 @@ CHIP_ERROR EspDnssdBrowse(const char * type, DnssdServiceProtocol protocol, chip
return error;
}

CHIP_ERROR EspDnssdResolve(DnssdService * service, chip::Inet::InterfaceId interface, DnssdResolveCallback callback,
void * context)
CHIP_ERROR EspDnssdResolve(DnssdService * service, chip::Inet::InterfaceId interface, DnssdResolveCallback callback, void * context)
{
CHIP_ERROR error = CHIP_NO_ERROR;
mdns_search_once_t * querySrv = mdns_query_async_new(service->mName, service->mType, GetProtocolString(service->mProtocol),
Expand Down

0 comments on commit 5fd680b

Please sign in to comment.