mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-02-01 01:09:47 +00:00
autocreate fix
git-svn-id: https://svn.fhem.de/fhem/trunk@4171 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
9159d204c4
commit
482c43b8a1
@ -148,7 +148,7 @@ JeeLink_Set($@)
|
||||
JeeLink_SimpleWrite($hash, $arg);
|
||||
|
||||
} elsif( $cmd eq "LaCrossePairForSec" ) {
|
||||
return "Usage: set $name LaCrossePairForSec <seconds_active> [ignore_battery]" if(!$arg || $arg !~ m/^\d+$/ || $arg2 ne "ignore_battery");
|
||||
return "Usage: set $name LaCrossePairForSec <seconds_active> [ignore_battery]" if(!$arg || $arg !~ m/^\d+$/ || ($arg2 && $arg2 ne "ignore_battery") );
|
||||
$hash->{LaCrossePair} = $arg2?2:1;
|
||||
InternalTimer(gettimeofday()+$arg, "JeeLink_RemoveLaCrossePair", $hash, 1);
|
||||
|
||||
|
@ -133,10 +133,9 @@ LaCrosse_Parse($$)
|
||||
if( !$modules{LaCrosse}{defptr}{$raddr} ) {
|
||||
Log3 $name, 3, "LaCrosse Unknown device $rname, please define it";
|
||||
|
||||
my $iohash = $rhash->{IODev};
|
||||
return undef if( !$iohash->{LaCrossePair} );
|
||||
return undef if( !$hash->{LaCrossePair} );
|
||||
|
||||
return "UNDEFINED LaCrosse_$rname LaCrosse $raddr" if( $battery_new || $iohash->{LaCrossePair} == 2 );
|
||||
return "UNDEFINED LaCrosse_$rname LaCrosse $raddr" if( $battery_new || $hash->{LaCrossePair} == 2 );
|
||||
return undef;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user