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