From 5462350e80792c070bf8fe07801cc304f294b291 Mon Sep 17 00:00:00 2001 From: hofrichter <> Date: Wed, 20 May 2015 22:13:38 +0000 Subject: [PATCH] PIONEERAVR: bugfix: set StatusRequest now updates the input names. This is important if you start Fhem when the PioneerAVR is not accessible via network. As soon as the connection is established also the input names are reread git-svn-id: https://svn.fhem.de/fhem/trunk@8612 2b470e98-0d58-463d-a4d8-8e2adae1ed80 --- fhem/CHANGED | 1 + fhem/FHEM/70_PIONEERAVR.pm | 7 +++---- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/fhem/CHANGED b/fhem/CHANGED index f858ceb91..3762edd72 100644 --- a/fhem/CHANGED +++ b/fhem/CHANGED @@ -1,5 +1,6 @@ # Add changes at the top of the list. Keep it in ASCII, and 80-char wide. # Do not insert empty lines here, update check depends on it. + - bugfix: 70_PIONEERAVR: set statusRequest updates now input names - feature: 30_pilight_dimmer: up|down commands to change the dimlevel - bugfix: 76_MSGMail: Add MSGMail_Attr() - feature: 70_PIONEERAVR: new set hdmiOut <1/2>to switch hdmi outputs diff --git a/fhem/FHEM/70_PIONEERAVR.pm b/fhem/FHEM/70_PIONEERAVR.pm index d947244a6..4e23375fa 100644 --- a/fhem/FHEM/70_PIONEERAVR.pm +++ b/fhem/FHEM/70_PIONEERAVR.pm @@ -803,10 +803,8 @@ PIONEERAVR_Define($$) { #### statusRequest # Update Input alias names, available and enabled Inputs - # This updates $hash->{helper}{INPUTNAMES} - PIONEERAVR_askForInputNames($hash,5); - - #### we execute all 'get XXX' + # This updates $hash->{helper}{INPUTNAMES} + #### Additionally we execute all 'get XXX' PIONEERAVR_statusUpdate($hash); return $ret; @@ -2118,6 +2116,7 @@ sub PIONEERAVR_statusUpdate($) { select(undef, undef, undef, 0.1); } } + PIONEERAVR_askForInputNames($hash,5); } ######################################################### sub PIONEERAVR_askForInputNames($$) {