From 8ffd026a6a8104d01e72ced282b697bfe6d300ba Mon Sep 17 00:00:00 2001 From: Maxim Prokhorov Date: Sat, 3 Apr 2021 19:35:25 +0300 Subject: [PATCH] mdns: tag offset starts from 2.7.2 --- code/espurna/mdns.cpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/code/espurna/mdns.cpp b/code/espurna/mdns.cpp index 03b06167..45719c43 100644 --- a/code/espurna/mdns.cpp +++ b/code/espurna/mdns.cpp @@ -81,10 +81,11 @@ void mdnsServerSetup() { return; } - // 2.7.4 and older require MDNS.begin() when interface is UP + // 2.7.x and older require MDNS.begin() when interface is UP // 3.0.0 and newer only need to do MDNS.begin() once at setup() - // (TODO: this is techically a constexpr, but not in 2.7.4 :/) - const static bool OldCore { esp8266::coreVersionNumeric() <= 20704000 }; + // (XXX: this is techically a constexpr, but not in 2.7.4 :/) + // (XXX: 2.7.4 ... 3.0.0 reports 20702...) + const static bool OldCore { esp8266::coreVersionNumeric() <= 20702000 }; wifiRegister([](wifi::Event event) { if (event == wifi::Event::StationConnected) {