mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-03-10 09:16:53 +00:00
correct multi-channel-statusmessage
git-svn-id: https://svn.fhem.de/fhem/trunk@3763 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
0373e29e61
commit
ad54155ce7
@ -871,13 +871,13 @@ sub CUL_HM_Parse($$) {##############################
|
|||||||
$d -= 0x10000 if($d & 0xC000);
|
$d -= 0x10000 if($d & 0xC000);
|
||||||
$d = sprintf("%0.1f",$d/10);
|
$d = sprintf("%0.1f",$d/10);
|
||||||
|
|
||||||
my $chId = $src.sprintf("02X",hex($a) & 0x6);
|
my $chId = sprintf("%02X",hex($a) & 0x3f);
|
||||||
if($modules{CUL_HM}{defptr}{$chId}){
|
if($modules{CUL_HM}{defptr}{$chId}){
|
||||||
push @entities,CUL_HM_UpdtReadSingle($modules{CUL_HM}{defptr}{$chId}
|
push @entities,CUL_HM_UpdtReadSingle($modules{CUL_HM}{defptr}{$src.$chId}
|
||||||
,'state',$d,1);
|
,'state',$d,1);
|
||||||
}
|
}
|
||||||
else{
|
else{
|
||||||
push @event, "Chan_$a:$d";
|
push @event, "Chan_$chId:$d";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user