mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-01-31 18:59:33 +00:00
70_ONKYO_AVR.pm: fix uninitialized value
git-svn-id: https://svn.fhem.de/fhem/trunk@12248 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
1d5b4bfb90
commit
01d49ad8c1
@ -995,11 +995,11 @@ sub ONKYO_AVR_Read($) {
|
||||
$type = "jpg" if ( $1 eq "1" );
|
||||
$type = "link" if ( $1 eq "2" );
|
||||
|
||||
$hash->{helper}{cover}{$type}{parts} = "1" if ( $2 eq "0" );
|
||||
$hash->{helper}{cover}{$type}{parts}++ if ( $2 ne "0" );
|
||||
$hash->{helper}{cover}{$type}{data} = "" if ( $2 eq "0" );
|
||||
$hash->{helper}{cover}{$type}{data} .= $3
|
||||
if ( $2 eq "0" || $hash->{helper}{cover}{$type}{data} ne "" );
|
||||
$hash->{helper}{cover}{$type}{parts} = "1" if ( "$2" eq "0" );
|
||||
$hash->{helper}{cover}{$type}{parts}++ if ( "$2" ne "0" );
|
||||
$hash->{helper}{cover}{$type}{data} = "" if ( "$2" eq "0" );
|
||||
$hash->{helper}{cover}{$type}{data} .= "$3"
|
||||
if ( "$2" eq "0" || $hash->{helper}{cover}{$type}{data} ne "" );
|
||||
|
||||
Log3 $name, 4, "ONKYO_AVR $name: rcv $cmd($type) in progress, part "
|
||||
. $hash->{helper}{cover}{$type}{parts};
|
||||
|
Loading…
Reference in New Issue
Block a user