From 89c19c0bc4f3b905f0c3770e5018412806894aec Mon Sep 17 00:00:00 2001 From: Michael Keller Date: Tue, 14 Nov 2017 12:02:39 +1300 Subject: [PATCH] Changed date/time update to happen only on startup. --- src/SCRIPTS/BF/background.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/SCRIPTS/BF/background.lua b/src/SCRIPTS/BF/background.lua index 3fadcdb9..aea64522 100644 --- a/src/SCRIPTS/BF/background.lua +++ b/src/SCRIPTS/BF/background.lua @@ -62,7 +62,7 @@ local function run_bg() mspMsgQueued = true timeIsSet = true - else + elseif type(newSensorValue) ~= "number" or newSensorValue == 0 then timeIsSet = false end