mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-01-31 12:49:34 +00:00
Make the change simpler
git-svn-id: https://svn.fhem.de/fhem/trunk@297 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
e5c70ca44b
commit
446aaa03d7
@ -79,7 +79,6 @@ HMS_Parse($$)
|
|||||||
my $dev = substr($msg, 16, 4);
|
my $dev = substr($msg, 16, 4);
|
||||||
my $cde = substr($msg, 11, 1);
|
my $cde = substr($msg, 11, 1);
|
||||||
my $val = substr($msg, 24, 8) if(length($msg) == 32);
|
my $val = substr($msg, 24, 8) if(length($msg) == 32);
|
||||||
my $odev;
|
|
||||||
|
|
||||||
my $type = "";
|
my $type = "";
|
||||||
foreach my $c (keys %codes) {
|
foreach my $c (keys %codes) {
|
||||||
@ -94,7 +93,6 @@ HMS_Parse($$)
|
|||||||
my $odev = $dev;
|
my $odev = $dev;
|
||||||
if(!defined($defptr{$dev})) {
|
if(!defined($defptr{$dev})) {
|
||||||
Log 4, "HMS device $dev not defined, using the wildcard device 100$cde";
|
Log 4, "HMS device $dev not defined, using the wildcard device 100$cde";
|
||||||
$odev = $dev;
|
|
||||||
$dev = "100$cde";
|
$dev = "100$cde";
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -236,7 +234,7 @@ HMS_Parse($$)
|
|||||||
$def->{STATE} = $val;
|
$def->{STATE} = $val;
|
||||||
$def->{CHANGED}[$max] = $val;
|
$def->{CHANGED}[$max] = $val;
|
||||||
|
|
||||||
$def->{CHANGED}[$max+1] = "ExactId: $odev" if($odev);
|
$def->{CHANGED}[$max+1] = "ExactId: $odev" if($odev ne $dev);
|
||||||
|
|
||||||
return $def->{NAME};
|
return $def->{NAME};
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user