Skip to content

Commit

Permalink
Restyled by clang-format
Browse files Browse the repository at this point in the history
  • Loading branch information
kklem0 committed Jun 19, 2021
1 parent b776109 commit e847137
Showing 1 changed file with 13 additions and 13 deletions.
26 changes: 13 additions & 13 deletions src/app/server/Mdns.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -276,21 +276,21 @@ void NetworkChangeEventHandler(const chip::DeviceLayer::ChipDeviceEvent * event,
{
switch (event->Type)
{
case chip::DeviceLayer::DeviceEventType::kInternetConnectivityChange:
if ((event->InternetConnectivityChange.IPv4 == chip::DeviceLayer::kConnectivity_Established) ||
(event->InternetConnectivityChange.IPv6 == chip::DeviceLayer::kConnectivity_Established))
{
chip::app::Mdns::StartServer();
}
break;
#if CHIP_DEVICE_CONFIG_ENABLE_THREAD
case chip::DeviceLayer::DeviceEventType::kThreadStateChange:
VerifyOrReturn(event->ThreadStateChange.AddressChanged);
case chip::DeviceLayer::DeviceEventType::kInternetConnectivityChange:
if ((event->InternetConnectivityChange.IPv4 == chip::DeviceLayer::kConnectivity_Established) ||
(event->InternetConnectivityChange.IPv6 == chip::DeviceLayer::kConnectivity_Established))
{
chip::app::Mdns::StartServer();
break;
}
break;
#if CHIP_DEVICE_CONFIG_ENABLE_THREAD
case chip::DeviceLayer::DeviceEventType::kThreadStateChange:
VerifyOrReturn(event->ThreadStateChange.AddressChanged);
chip::app::Mdns::StartServer();
break;
#endif
default:
break;
default:
break;
}
}

Expand Down

0 comments on commit e847137

Please sign in to comment.