mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-01-31 18:59:33 +00:00
00_ZWDongle: fix small bug rearding backgroundRSSI
git-svn-id: https://svn.fhem.de/fhem/trunk@15490 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
95955e9d13
commit
96c1e9de18
@ -566,7 +566,7 @@ ZWDongle_Get($@)
|
||||
} elsif($cmd eq "backgroundRSSI") { ############################
|
||||
my @list;
|
||||
my $i=0;
|
||||
my $maxlen = (length($msg) >= 12 ? 10 : length($msg)-2);
|
||||
my $maxlen = (length($msg) >= 10 ? 10 : length($msg)-2);
|
||||
for(my $off=4; $off<$maxlen; $off+=2) {
|
||||
my $dec = hex(substr($msg, $off, 2));
|
||||
if($dec == 127 || $dec == 0) {
|
||||
|
Loading…
Reference in New Issue
Block a user