mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-03-10 09:16:53 +00:00
89_HEATRONIC.pm: calculation of sol_Tcollector changed
git-svn-id: https://svn.fhem.de/fhem/trunk@8068 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
5f6cf5d92a
commit
229a76a48f
@ -754,16 +754,16 @@ HEATRONIC_DecodeMsg_SOL($$$)
|
|||||||
my $sol_Tcylinder_bottom = 0;
|
my $sol_Tcylinder_bottom = 0;
|
||||||
if (hex(substr($string,5*2,2)) == 3)
|
if (hex(substr($string,5*2,2)) == 3)
|
||||||
{
|
{
|
||||||
if (hex(substr($string,10*2,2)) != 255)
|
my $sol_Tcollector = hex(substr($string,10*2,2));
|
||||||
|
if ($sol_Tcollector != 255)
|
||||||
{
|
{
|
||||||
$sol_Tcollector = hex(substr($string,10*2,4))/10;
|
$sol_Tcollector = ($sol_Tcollector * 256 + hex(substr($string,11*2,2)))/10;
|
||||||
$sol_Tcylinder_bottom = hex(substr($string,12*2,4))/10;
|
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
$sol_Tcollector = hex(255-substr($string,11*2,2))/-10;
|
$sol_Tcollector = hex(255-substr($string,11*2,2))/-10;
|
||||||
$sol_Tcylinder_bottom = hex(substr($string,12*2,4))/10;
|
|
||||||
}
|
}
|
||||||
|
$sol_Tcylinder_bottom = hex(substr($string,12*2,4))/10;
|
||||||
|
|
||||||
my $sol_pump = (hex(substr($string,14*2,2)) & 0x01) ? 1 : 0;
|
my $sol_pump = (hex(substr($string,14*2,2)) & 0x01) ? 1 : 0;
|
||||||
my $sol_yield_last_hour = hex(substr($string,8*2,4));
|
my $sol_yield_last_hour = hex(substr($string,8*2,4));
|
||||||
|
Loading…
x
Reference in New Issue
Block a user