2
0
mirror of https://github.com/fhem/fhem-mirror.git synced 2025-04-11 20:39:47 +00:00

44_TEK603.pm: Fixed TankLevel=NO_DATA

git-svn-id: https://svn.fhem.de/fhem/trunk@10987 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
eisler 2016-03-04 10:23:40 +00:00
parent 66ec7954a9
commit fc6aa6b733
2 changed files with 7 additions and 4 deletions

View File

@ -1,5 +1,6 @@
# Add changes at the top of the list. Keep it in ASCII, and 80-char wide.
# Do not insert empty lines here, update check depends on it.
- bugfix: 44_TEK603: Fixed TankLevel=NO_DATA
- feature: LGTV_IP12: new reading "power"
- change: LGTV_IP12: changed values of mute reading from true/false to on/off
- bugfix: 30_MilightBridge: suppress protocol change message on startup

View File

@ -174,6 +174,8 @@ sub TEK603_read($) {
my $RemainingUsableLevel= hex(substr($payload,6,2)) * 256 + hex(substr($payload,8,2));
my $TotalUsableCapacity = hex(substr($payload,10,2)) * 256 + hex(substr($payload,12,2));
return '' if($temp eq "-40" && $Ullage eq "0"); # TankLevel=NO_DATA
#Log3 $name, 5, $hash->{buffer};
Log3 $name, 5, "Time:$time Temp:$temp Ullage:$Ullage RemainingUsableLevel:$RemainingUsableLevel TotalUsableCapacity:$TotalUsableCapacity";
@ -214,12 +216,12 @@ sub TEK603_reconnect($) {
It works in conjunction with a TEK653 Sonic transmitter mounted on the top of the tank.
<br />
<br /><br /><br />
<b>Prerequisites</b><br>
The module requires the perl module Digest::CRC<br>
On a debian based system the module can be installed with<br>
The module requires the perl module Digest::CRC<br />
On a debian based system the module can be installed with<br />
<code>
sudo apt-get install libdigest-crc-perl<br>
sudo apt-get install libdigest-crc-perl<br />
</code>
<br /><br />