mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-01-31 06:39:11 +00:00
98_Verkehrsinfo.pm: bugfix internalTimer (Forum #95654)
git-svn-id: https://svn.fhem.de/fhem/trunk@18219 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
f75654e1a9
commit
fb223f4000
@ -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: 98_Verkehrsinfo.pm: internalTimer
|
||||
- change: 32_withings: improve Aura handling
|
||||
- bugfix: 49_SSCam: fix blocking sscam operation if snap was executed with
|
||||
arguments and aatribute snapEmailTxt is not set,
|
||||
|
@ -25,6 +25,10 @@
|
||||
############################################################################
|
||||
#
|
||||
# Changelog:
|
||||
# 2019-01-12, v2.4
|
||||
# Bugfix: Attribut disable InternalTimer parameter 4 = 0, nonblocking
|
||||
# Bugfix: Verkehrsinfo_GetUpdate, skip InternalTimer start if the Attribut disable != 0
|
||||
#
|
||||
# 2018-10-21, v2.3
|
||||
# Feature: Attribut disable added
|
||||
#
|
||||
@ -566,7 +570,9 @@ sub Verkehrsinfo_GetUpdate($) {
|
||||
if ( $hash->{Interval}) {
|
||||
RemoveInternalTimer ($hash);
|
||||
}
|
||||
InternalTimer(gettimeofday()+$hash->{Interval}, "Verkehrsinfo_GetUpdate", $hash, 1);
|
||||
if (AttrVal($name,"disable","0") == "0"){
|
||||
InternalTimer(gettimeofday()+$hash->{Interval}, "Verkehrsinfo_GetUpdate", $hash, 0);
|
||||
}
|
||||
Log3 $hash, 4, "Verkehrsinfo: ($name) internal interval timer set to call GetUpdate again in " . int($hash->{Interval}). " seconds";
|
||||
|
||||
my $param = {
|
||||
|
Loading…
Reference in New Issue
Block a user