diff --git a/code/espurna/ntp.h b/code/espurna/ntp.h index 981b734a..658582d8 100644 --- a/code/espurna/ntp.h +++ b/code/espurna/ntp.h @@ -52,7 +52,7 @@ struct NtpInfo { time_t now; }; -BrokerDeclare(NtpBroker, void(const NtpTick, time_t, const String&)); +BrokerDeclare(NtpBroker, void(NtpTick, time_t, const String&)); NtpInfo ntpInfo(); diff --git a/code/espurna/rpnrules.cpp b/code/espurna/rpnrules.cpp index 758fdd8a..9bd0c0a2 100644 --- a/code/espurna/rpnrules.cpp +++ b/code/espurna/rpnrules.cpp @@ -897,7 +897,7 @@ void rpnSetup() { #endif #if NTP_SUPPORT - NtpBroker::Register([](const NtpTick tick, time_t timestamp, const String& datetime) { + NtpBroker::Register([](NtpTick tick, time_t timestamp, const String& datetime) { static const String tick_every_hour(F("tick1h")); static const String tick_every_minute(F("tick1m"));