mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-03-10 03:06:37 +00:00
12_HProtocolGateway: start poll timer
git-svn-id: https://svn.fhem.de/fhem/trunk@18632 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
4890a724fb
commit
f40a12b866
@ -1,5 +1,6 @@
|
|||||||
# Add changes at the top of the list. Keep it in ASCII, and 80-char wide.
|
# 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.
|
# 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
|
- bugfix: 73_AutoShuttersControl: fix many bugs, support for max window
|
||||||
contact sensors, fix set partyMode then Reading and set command
|
contact sensors, fix set partyMode then Reading and set command
|
||||||
equivalent
|
equivalent
|
||||||
|
@ -67,7 +67,7 @@ sub HProtocolGateway_Define($$) {
|
|||||||
|
|
||||||
HProtocolGateway_DeviceConfig($hash);
|
HProtocolGateway_DeviceConfig($hash);
|
||||||
|
|
||||||
HProtocolGateway_Poll($hash) if defined(AttrVal($hash->{NAME}, 'pollIntervalMins', undef)); # if pollIntervalMins defind -> start timer
|
HProtocolGateway_Poll($hash); # s
|
||||||
|
|
||||||
return undef;
|
return undef;
|
||||||
}
|
}
|
||||||
@ -334,7 +334,7 @@ sub HProtocolGateway_Attr (@) {
|
|||||||
if (defined($val)) {
|
if (defined($val)) {
|
||||||
if ($val =~ m/^(0*[1-9][0-9]*)$/) {
|
if ($val =~ m/^(0*[1-9][0-9]*)$/) {
|
||||||
RemoveInternalTimer($hash);
|
RemoveInternalTimer($hash);
|
||||||
HProtocolGateway_Poll($hash) if ($main::init_done);
|
HProtocolGateway_Poll($hash);
|
||||||
} else {
|
} else {
|
||||||
$msg = 'Wrong poll intervall defined. pollIntervalMins must be a number > 0';
|
$msg = 'Wrong poll intervall defined. pollIntervalMins must be a number > 0';
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user