mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-05-04 22:19:38 +00:00
update channel from received messages
git-svn-id: https://svn.fhem.de/fhem/trunk/fhem@4256 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
2e9b9ef00e
commit
db38edec3e
@ -216,6 +216,14 @@ PCA301_Parse($$)
|
||||
|
||||
$rhash->{PCA301_lastRcv} = TimeNow();
|
||||
|
||||
if( $rhash->{channel} != $channel ) {
|
||||
Log3 $rname, 3, "PCA301 $rname, channel changed from $rhash->{channel} to $channel";
|
||||
|
||||
$rhash->{channel} = $channel;
|
||||
$rhash->{DEF} = "$rhash->{addr} $rhash->{channel}";
|
||||
CommandSave(undef,undef) if( AttrVal( "autocreate", "autosave", 1 ) );
|
||||
}
|
||||
|
||||
my $readonly = AttrVal($rname, "readonly", "0" );
|
||||
my $state = "";
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user