From a73c0f956711ab0da2f243f8d817f0dfc4ac9860 Mon Sep 17 00:00:00 2001 From: Torsten Stauder Date: Tue, 23 Nov 2021 09:44:23 +0100 Subject: [PATCH] Slight code-reformat + new revision for MQTT-fix --- src/System.cpp | 15 ++++----------- src/revision.h | 2 +- 2 files changed, 5 insertions(+), 12 deletions(-) diff --git a/src/System.cpp b/src/System.cpp index 0fa13b2..d6165ab 100644 --- a/src/System.cpp +++ b/src/System.cpp @@ -88,20 +88,13 @@ bool System_SetSleepTimer(uint8_t minutes) { sleepTimerEnabled = true; Led_ResetToNightBrightness(); - if (minutes == 15) - { + if (minutes == 15) { Log_Println((char *)FPSTR(modificatorSleepTimer15), LOGLEVEL_NOTICE); - } - else if (minutes == 30) - { + } else if (minutes == 30) { Log_Println((char *)FPSTR(modificatorSleepTimer30), LOGLEVEL_NOTICE); - } - else if (minutes == 60) - { + } else if (minutes == 60) { Log_Println((char *)FPSTR(modificatorSleepTimer60), LOGLEVEL_NOTICE); - } - else - { + } else { Log_Println((char *)FPSTR(modificatorSleepTimer120), LOGLEVEL_NOTICE); } diff --git a/src/revision.h b/src/revision.h index 55e140d..e8c77f8 100644 --- a/src/revision.h +++ b/src/revision.h @@ -1,4 +1,4 @@ #ifndef __REVISION_H__ #define __REVISION_H__ - constexpr const char softwareRevision[] PROGMEM = "Software-revision: 20211113-2"; + constexpr const char softwareRevision[] PROGMEM = "Software-revision: 20211123-1"; #endif \ No newline at end of file