mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-01-31 18:59:33 +00:00
ONKYO_AVR: fix video-in/out parser warning
git-svn-id: https://svn.fhem.de/fhem/trunk@5463 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
6de136f051
commit
a9f7302208
@ -24,7 +24,7 @@
|
|||||||
# along with fhem. If not, see <http://www.gnu.org/licenses/>.
|
# along with fhem. If not, see <http://www.gnu.org/licenses/>.
|
||||||
#
|
#
|
||||||
#
|
#
|
||||||
# Version: 1.0.3
|
# Version: 1.0.4
|
||||||
#
|
#
|
||||||
# Major Version History:
|
# Major Version History:
|
||||||
# - 1.0.0 - 2013-12-16
|
# - 1.0.0 - 2013-12-16
|
||||||
@ -432,7 +432,10 @@ sub ONKYO_AVR_GetStatus($;$) {
|
|||||||
# Video-in resolution
|
# Video-in resolution
|
||||||
my @vidin_res_string = split( / +/, $video_split[1] );
|
my @vidin_res_string = split( / +/, $video_split[1] );
|
||||||
my $vidin_res;
|
my $vidin_res;
|
||||||
if ( uc( $vidin_res_string[0] ) ne "UNKNOWN"
|
if ( defined( $vidin_res_string[0] )
|
||||||
|
&& defined( $vidin_res_string[2] )
|
||||||
|
&& defined( $vidin_res_string[3] )
|
||||||
|
&& uc( $vidin_res_string[0] ) ne "UNKNOWN"
|
||||||
&& uc( $vidin_res_string[2] ) ne "UNKNOWN"
|
&& uc( $vidin_res_string[2] ) ne "UNKNOWN"
|
||||||
&& uc( $vidin_res_string[3] ) ne "UNKNOWN" )
|
&& uc( $vidin_res_string[3] ) ne "UNKNOWN" )
|
||||||
{
|
{
|
||||||
@ -448,7 +451,10 @@ sub ONKYO_AVR_GetStatus($;$) {
|
|||||||
# Video-out resolution
|
# Video-out resolution
|
||||||
my @vidout_res_string = split( / +/, $video_split[5] );
|
my @vidout_res_string = split( / +/, $video_split[5] );
|
||||||
my $vidout_res;
|
my $vidout_res;
|
||||||
if ( uc( $vidout_res_string[0] ) ne "UNKNOWN"
|
if ( defined( $vidout_res_string[0] )
|
||||||
|
&& defined( $vidout_res_string[2] )
|
||||||
|
&& defined( $vidout_res_string[3] )
|
||||||
|
&& uc( $vidout_res_string[0] ) ne "UNKNOWN"
|
||||||
&& uc( $vidout_res_string[2] ) ne "UNKNOWN"
|
&& uc( $vidout_res_string[2] ) ne "UNKNOWN"
|
||||||
&& uc( $vidout_res_string[3] ) ne "UNKNOWN" )
|
&& uc( $vidout_res_string[3] ) ne "UNKNOWN" )
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user