2
0
mirror of https://github.com/fhem/fhem-mirror.git synced 2025-02-01 07:19:24 +00:00

MAXLAN: fix interpreting hex as decimal

git-svn-id: https://svn.fhem.de/fhem/trunk@4091 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
mgehre 2013-10-21 20:55:00 +00:00
parent 694c52bd09
commit 9682007943

View File

@ -659,7 +659,7 @@ MAXLAN_Parse($$)
} elsif($cmd eq "S"){#Response to s:
$hash->{dutycycle} = hex($args[0]); #number of command send over the air
my $discarded = $args[1];
$hash->{freememoryslot} = $args[2];
$hash->{freememoryslot} = hex($args[2]);
Log 5, "MAXLAN_Parse: dutycyle $hash->{dutycycle}, freememoryslot $hash->{freememoryslot}";
Log 3, "MAXLAN_Parse: 1% rule: we sent too much, cmd is now in queue" if($hash->{dutycycle} == 100 && $hash->{freememoryslot} > 0);