10_SchellenbergHandle.pm: rolling code fix

git-svn-id: https://svn.fhem.de/fhem/trunk@22792 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
herrmannj
2020-09-19 13:24:04 +00:00
parent e6aa76befd
commit 9e2bfe30ef

View File

@@ -166,7 +166,7 @@ sub SchellenbergHandle_ProcessMsg {
my $diff;
{
use integer;
$diff = (0x10000 + hex($mc) - $lastmc) & 0xFFFF;
$diff = (0x10000 +$mc -$lastmc) & 0xFFFF;
};
if ($diff == 0) {
return;