70_ONKYO_AVR: allow vidout_mode to be empty

git-svn-id: https://svn.fhem.de/fhem/trunk/fhem@17029 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
jpawlowski 2018-07-25 18:57:59 +00:00
parent e0cc23b37f
commit 8a2976ff5e

View File

@ -1637,7 +1637,7 @@ sub ONKYO_AVR_Read($) {
elsif ( $cmd eq "video-information" ) { elsif ( $cmd eq "video-information" ) {
my @video_split = split( /,/, $value ); my @video_split = split( /,/, $value );
if ( scalar(@video_split) >= 9 ) { if ( scalar(@video_split) >= 8 ) {
# Video-in resolution # Video-in resolution
my @vidin_res_string = split( / +/, $video_split[1] ); my @vidin_res_string = split( / +/, $video_split[1] );
@ -1713,8 +1713,9 @@ sub ONKYO_AVR_Read($) {
ReadingsVal( $name, "vidout_cdepth", "-" ) ne $vidout_cdepth ); ReadingsVal( $name, "vidout_cdepth", "-" ) ne $vidout_cdepth );
readingsBulkUpdate( $hash, "vidout_mode", $video_split[8] ) readingsBulkUpdate( $hash, "vidout_mode", $video_split[8] )
if ( if ( defined( $video_split[8] )
ReadingsVal( $name, "vidout_mode", "-" ) ne $video_split[8] ); && ReadingsVal( $name, "vidout_mode", "-" ) ne $video_split[8]
);
} }
else { else {