From 72662bf1b752f01b9b9a52236f185c27f53ac588 Mon Sep 17 00:00:00 2001 From: klaus-schauer <> Date: Sun, 18 Aug 2013 19:14:51 +0000 Subject: [PATCH] # RSSI: radio signal strength with correct negative sign git-svn-id: https://svn.fhem.de/fhem/trunk@3745 2b470e98-0d58-463d-a4d8-8e2adae1ed80 --- fhem/FHEM/00_TCM.pm | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/fhem/FHEM/00_TCM.pm b/fhem/FHEM/00_TCM.pm index 8287199ea..1b89e982a 100755 --- a/fhem/FHEM/00_TCM.pm +++ b/fhem/FHEM/00_TCM.pm @@ -316,10 +316,10 @@ TCM_Read($) PacketType => $packetType, SubTelNum => hex($1), DestinationID => $2, - RSSI => hex($3), + RSSI => -hex($3), SecurityLevel => hex($4), ); - $hash->{RSSI} = hex($3); + $hash->{RSSI} = -hex($3); if ($blockSenderID eq "own" && (hex $id) >= $baseID && (hex $id) <= $lastID) { Log $ll5, "TCM: $name Telegram from $id blocked."; @@ -760,9 +760,10 @@ TCM_Undef($$)