Browse Source

ntp: fix gcc-4.8.2 auto var { ... } becoming initializer_list

gcc-10.2 in the current git correctly deduces the expression :(
only tested this with the new gcc, fix the current release build
mcspr-patch-1
Maxim Prokhorov 3 years ago
parent
commit
57e059a684
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      code/espurna/ws.cpp

+ 1
- 1
code/espurna/ws.cpp View File

@ -45,7 +45,7 @@ void _wsUpdate(JsonObject& root) {
}
#if NTP_SUPPORT
if (ntpSynced()) {
auto info { ntpInfo() };
auto info = ntpInfo();
root["now"] = info.now;
root["nowString"] = info.utc;
root["nowLocalString"] = info.local.length()


Loading…
Cancel
Save