mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-05-04 22:19:38 +00:00
autocreate fix
git-svn-id: https://svn.fhem.de/fhem/trunk/fhem@4171 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
efb30730de
commit
469c848ccc
@ -148,7 +148,7 @@ JeeLink_Set($@)
|
|||||||
JeeLink_SimpleWrite($hash, $arg);
|
JeeLink_SimpleWrite($hash, $arg);
|
||||||
|
|
||||||
} elsif( $cmd eq "LaCrossePairForSec" ) {
|
} 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;
|
$hash->{LaCrossePair} = $arg2?2:1;
|
||||||
InternalTimer(gettimeofday()+$arg, "JeeLink_RemoveLaCrossePair", $hash, 1);
|
InternalTimer(gettimeofday()+$arg, "JeeLink_RemoveLaCrossePair", $hash, 1);
|
||||||
|
|
||||||
|
@ -133,10 +133,9 @@ LaCrosse_Parse($$)
|
|||||||
if( !$modules{LaCrosse}{defptr}{$raddr} ) {
|
if( !$modules{LaCrosse}{defptr}{$raddr} ) {
|
||||||
Log3 $name, 3, "LaCrosse Unknown device $rname, please define it";
|
Log3 $name, 3, "LaCrosse Unknown device $rname, please define it";
|
||||||
|
|
||||||
my $iohash = $rhash->{IODev};
|
return undef if( !$hash->{LaCrossePair} );
|
||||||
return undef if( !$iohash->{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;
|
return undef;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user