From 2b63c64f74571592ab528af9f43faf0fc64ba814 Mon Sep 17 00:00:00 2001 From: Theo Arends <11044339+arendst@users.noreply.github.com> Date: Fri, 11 Oct 2019 14:39:58 +0200 Subject: [PATCH] Houskeeping --- sonoff/support_wifi.ino | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/sonoff/support_wifi.ino b/sonoff/support_wifi.ino index fc2bc8056..3f0faf9af 100644 --- a/sonoff/support_wifi.ino +++ b/sonoff/support_wifi.ino @@ -241,18 +241,18 @@ void WifiBegin(uint8_t flag, uint8_t channel) #if LWIP_IPV6 for (bool configured = false; !configured;) { - uint16_t cfgcnt=0; - for (auto addr : addrList) - { - if ((configured = !addr.isLocal() && addr.isV6()) || cfgcnt==30) break; // IPv6 is mandatory but stop after 15 seconds + uint16_t cfgcnt = 0; + for (auto addr : addrList) { + if ((configured = !addr.isLocal() && addr.isV6()) || cfgcnt==30) { + break; // IPv6 is mandatory but stop after 15 seconds + } delay(500); // Loop until real IPv6 address is aquired or too many tries failed cfgcnt++; } } for (auto a : addrList) { - if(!a.isLocal() && !a.isLegacy()) - { - AddLog_P2(LOG_LEVEL_INFO, PSTR("WIFi: Got IPv6 global address %s"),a.toString().c_str()); + if (!a.isLocal() && !a.isLegacy()) { + AddLog_P2(LOG_LEVEL_INFO, PSTR(D_LOG_WIFI "Got IPv6 global address %s"), a.toString().c_str()); } } #endif