From d6bd9ed99330ae3b918a1cecb3eeed4f79554040 Mon Sep 17 00:00:00 2001 From: Maxim Prokhorov Date: Thu, 21 Jan 2021 11:41:47 +0300 Subject: [PATCH] ntp: pointless const --- code/espurna/ntp.h | 2 +- code/espurna/rpnrules.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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"));