From f3fc7beeb6a5c7d5c9d0ee3d8d9b26a9f3fe4be7 Mon Sep 17 00:00:00 2001 From: mgehre <> Date: Fri, 11 Sep 2015 21:55:14 +0000 Subject: [PATCH] 00_MAXLAN: set time on cube if it has none (by Tom_S) git-svn-id: https://svn.fhem.de/fhem/trunk@9234 2b470e98-0d58-463d-a4d8-8e2adae1ed80 --- fhem/CHANGED | 1 + fhem/FHEM/00_MAXLAN.pm | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/fhem/CHANGED b/fhem/CHANGED index b7ba5bd63..f61fdc891 100644 --- a/fhem/CHANGED +++ b/fhem/CHANGED @@ -1,5 +1,6 @@ # Add changes at the top of the list. Keep it in ASCII, and 80-char wide. # Do not insert empty lines here, update check depends on it. + - bugfix: 00_MAXLAN: set time on cube if it has none (by Tom_S) - bugfix: 14_CUL_MAX: work together with a-culfw - bugfix: 70_PushNotifier: bugfix regex deviceID - feature: new Module 74_AMAD to request Information and control Android diff --git a/fhem/FHEM/00_MAXLAN.pm b/fhem/FHEM/00_MAXLAN.pm index 54c4642cf..2383d69e1 100755 --- a/fhem/FHEM/00_MAXLAN.pm +++ b/fhem/FHEM/00_MAXLAN.pm @@ -173,7 +173,7 @@ MAXLAN_Connect($) #At the end, the cube sends a "L:" #Handle deferred setting of time - if(AttrVal($hash->{NAME},"set-clock-on-init","1") && $hash->{cubeTimeDifference} > 1) { + if(AttrVal($hash->{NAME},"set-clock-on-init","1") && ($hash->{cubeTimeDifference} > 1 || !$hash->{clockset})) { MAXLAN_Set($hash,$hash->{NAME},"clock"); }