2
0
mirror of https://github.com/fhem/fhem-mirror.git synced 2025-04-22 14:16:42 +00:00

replaceBatteryForSec fix

git-svn-id: https://svn.fhem.de/fhem/trunk@4834 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
justme-1968 2014-02-07 10:29:42 +00:00
parent 510100a150
commit 74e08cbb03

View File

@ -146,7 +146,7 @@ LaCrosse_Set($@)
if( $cmd eq "replaceBatteryForSec" ) {
foreach my $d (sort keys %defs) {
next if (!defined($defs{$d}) );
next if ($defs{$d} ne $hash->{TYPE} );
next if ($defs{$d}->{TYPE} ne "LaCrosse" );
LaCrosse_RemoveReplaceBattery{$defs{$d}};
}
return "Usage: set $name replaceBatteryForSec <seconds_active> [ignore_battery]" if(!$arg || $arg !~ m/^\d+$/ || ($arg2 && $arg2 ne "ignore_battery"));