mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-04-07 19:04:20 +00:00
21_OWAD.pm: Bugfix
git-svn-id: https://svn.fhem.de/fhem/trunk@23571 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
48dfac2475
commit
b3152c6904
@ -1262,19 +1262,12 @@ sub OWXAD_BinValues($$$$$$$) {
|
|||||||
$hash->{ERRSTATE} = 1;
|
$hash->{ERRSTATE} = 1;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
#=============== get the voltage reading ===============================
|
#=============== get the voltage reading ===============================
|
||||||
if( $context =~ /^ds2450.getreading/ ){
|
if( $context =~ /^ds2450.getreading/ ){
|
||||||
for( my $i=0;$i<int(@owg_fixed);$i++){
|
for( my $i=0;$i<int(@owg_fixed);$i++){
|
||||||
$hash->{owg_val}->[$i]= (ord($data[2*$i])+256*ord($data[1+2*$i]) )/(1<<$owg_resoln[$i]) * $owg_range[$i]/1000;
|
$hash->{owg_val}->[$i]= (ord($data[2*$i])+256*ord($data[1+2*$i]) )/(1<<$owg_resoln[$i]) * $owg_range[$i]/1000;
|
||||||
}
|
}
|
||||||
|
|
||||||
2021.01.17 05:31:05 1: PERL WARNING: Use of uninitialized value within @owg_resoln in left bitshift (<<) at /opt/fhem/FHEM/21_OWAD.pm line 1270.
|
|
||||||
2021.01.17 05:31:05 1: PERL WARNING: Use of uninitialized value in multiplication (*) at /opt/fhem/FHEM/21_OWAD.pm line 1270.
|
|
||||||
2021.01.17 05:31:06 1: PERL WARNING: Use of uninitialized value in multiplication (*) at /opt/fhem/FHEM/21_OWAD.pm line 1276.
|
|
||||||
2021.01.17 05:31:06 1: PERL WARNING: Use of uninitialized value in multiplication (*) at /opt/fhem/FHEM/21_OWAD.pm line 1277.
|
|
||||||
|
|
||||||
|
|
||||||
#=============== get the alarm reading ===============================
|
#=============== get the alarm reading ===============================
|
||||||
} elsif ( $context =~ /^ds2450.getalarm/ ){
|
} elsif ( $context =~ /^ds2450.getalarm/ ){
|
||||||
for( my $i=0;$i<int(@owg_fixed);$i++){
|
for( my $i=0;$i<int(@owg_fixed);$i++){
|
||||||
|
Loading…
x
Reference in New Issue
Block a user