From 259133bfbbe7d791e2ea0695364b071276450f06 Mon Sep 17 00:00:00 2001 From: Pecusx Date: Thu, 9 Mar 2017 02:13:18 +0100 Subject: [PATCH] Save Timer time only if longer than 4 minutes. --- radio_class.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/radio_class.py b/radio_class.py index 25a2422..c6d48ae 100755 --- a/radio_class.py +++ b/radio_class.py @@ -1548,9 +1548,10 @@ class Radio: if self.optionChanged(): display_mode = self.MODE_TIME self.optionChangedFalse() - # If new time of Timer is set - Save it + # If new time of Timer is set - Save it (only if longer than 4 minutes) if self.timerValue != self.getStoredTimer(): - self.storeTimer(self.timerValue) + if self.timerValue > 4: + self.storeTimer(self.timerValue) self.setDisplayMode(display_mode) return