From f40a12b866f10ba19236b2f29c2c2e19d88c601b Mon Sep 17 00:00:00 2001 From: eisler Date: Mon, 18 Feb 2019 16:23:46 +0000 Subject: [PATCH] 12_HProtocolGateway: start poll timer git-svn-id: https://svn.fhem.de/fhem/trunk@18632 2b470e98-0d58-463d-a4d8-8e2adae1ed80 --- fhem/CHANGED | 1 + fhem/FHEM/12_HProtocolGateway.pm | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/fhem/CHANGED b/fhem/CHANGED index 7f8d8faba..bad4c64d2 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: 12_HProtocolGateway: start poll timer - bugfix: 73_AutoShuttersControl: fix many bugs, support for max window contact sensors, fix set partyMode then Reading and set command equivalent diff --git a/fhem/FHEM/12_HProtocolGateway.pm b/fhem/FHEM/12_HProtocolGateway.pm index 7cfd4a8af..b26942d69 100644 --- a/fhem/FHEM/12_HProtocolGateway.pm +++ b/fhem/FHEM/12_HProtocolGateway.pm @@ -67,7 +67,7 @@ sub HProtocolGateway_Define($$) { HProtocolGateway_DeviceConfig($hash); - HProtocolGateway_Poll($hash) if defined(AttrVal($hash->{NAME}, 'pollIntervalMins', undef)); # if pollIntervalMins defind -> start timer + HProtocolGateway_Poll($hash); # s return undef; } @@ -334,7 +334,7 @@ sub HProtocolGateway_Attr (@) { if (defined($val)) { if ($val =~ m/^(0*[1-9][0-9]*)$/) { RemoveInternalTimer($hash); - HProtocolGateway_Poll($hash) if ($main::init_done); + HProtocolGateway_Poll($hash); } else { $msg = 'Wrong poll intervall defined. pollIntervalMins must be a number > 0'; }