mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-04-11 20:39:47 +00:00
fix: attribute disable does not work properly
git-svn-id: https://svn.fhem.de/fhem/trunk@11105 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
b52731cdcf
commit
6b66386dd2
@ -38,7 +38,7 @@ use Data::Dumper;
|
||||
my $missingModulRemote;
|
||||
eval "use Net::Telnet;1" or $missingModulRemote .= "Net::Telnet ";
|
||||
|
||||
my $VERSION = "2.2.7";
|
||||
my $VERSION = "2.2.8";
|
||||
|
||||
use constant {
|
||||
PERL_VERSION => "perl_version",
|
||||
@ -819,9 +819,12 @@ SYSMON_Attr($$$)
|
||||
if($attrName eq "disable")
|
||||
{
|
||||
RemoveInternalTimer($hash);
|
||||
if($attrVal ne "0")
|
||||
if($attrVal ne "1")
|
||||
{
|
||||
InternalTimer(gettimeofday()+$hash->{INTERVAL_BASE}, "SYSMON_Update", $hash, 0);
|
||||
$hash->{STATE} = "Active";
|
||||
} else {
|
||||
$hash->{STATE} = "Inactive";
|
||||
}
|
||||
#$hash->{LOCAL} = 1;
|
||||
#SYSMON_Update($hash);
|
||||
|
Loading…
x
Reference in New Issue
Block a user