mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-03-13 17:26:34 +00:00
fhem.pl: change lastDefChange for VOLATILE devices (Forum #33242)
git-svn-id: https://svn.fhem.de/fhem/trunk@7919 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
642d7f5ae5
commit
fb079237cb
@ -4124,9 +4124,11 @@ addStructChange($$$)
|
||||
return if(!$init_done);
|
||||
|
||||
my ($cmd, $dev, $param) = @_;
|
||||
return if(!$defs{$dev} || $defs{$dev}{TEMPORARY} || $defs{$dev}{VOLATILE});
|
||||
return if(!$defs{$dev} || $defs{$dev}{TEMPORARY});
|
||||
|
||||
$lastDefChange++;
|
||||
return if($defs{$dev}{VOLATILE});
|
||||
|
||||
shift @structChangeHist if(@structChangeHist > 9);
|
||||
$param = substr($param, 0, 40)."..." if(length($param) > 40);
|
||||
push @structChangeHist, "$cmd $param";
|
||||
|
Loading…
x
Reference in New Issue
Block a user