mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-03-10 09:16:53 +00:00
70_ONKYO_AVR: allow vidout_mode to be empty
git-svn-id: https://svn.fhem.de/fhem/trunk@17029 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
6b56e2f0cf
commit
9efdccc5a1
@ -1637,7 +1637,7 @@ sub ONKYO_AVR_Read($) {
|
||||
|
||||
elsif ( $cmd eq "video-information" ) {
|
||||
my @video_split = split( /,/, $value );
|
||||
if ( scalar(@video_split) >= 9 ) {
|
||||
if ( scalar(@video_split) >= 8 ) {
|
||||
|
||||
# Video-in resolution
|
||||
my @vidin_res_string = split( / +/, $video_split[1] );
|
||||
@ -1713,8 +1713,9 @@ sub ONKYO_AVR_Read($) {
|
||||
ReadingsVal( $name, "vidout_cdepth", "-" ) ne $vidout_cdepth );
|
||||
|
||||
readingsBulkUpdate( $hash, "vidout_mode", $video_split[8] )
|
||||
if (
|
||||
ReadingsVal( $name, "vidout_mode", "-" ) ne $video_split[8] );
|
||||
if ( defined( $video_split[8] )
|
||||
&& ReadingsVal( $name, "vidout_mode", "-" ) ne $video_split[8]
|
||||
);
|
||||
|
||||
}
|
||||
else {
|
||||
|
Loading…
x
Reference in New Issue
Block a user