From f3f2688292f4d97aa9318e7b575d4a7e33cb4f53 Mon Sep 17 00:00:00 2001 From: Marko Oldenburg Date: Tue, 1 Feb 2022 12:42:32 +0100 Subject: [PATCH] Subject line (try to keep under 50 characters) Multi-line description of commit, feel free to be detailed. [Ticket: X] --- FHEM/73_GardenaSmartBridge.pm | 5 ++++- controls_GardenaSmartDevice.txt | 2 +- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/FHEM/73_GardenaSmartBridge.pm b/FHEM/73_GardenaSmartBridge.pm index b4351ba..6e3b977 100644 --- a/FHEM/73_GardenaSmartBridge.pm +++ b/FHEM/73_GardenaSmartBridge.pm @@ -901,7 +901,10 @@ sub PollChild { my $subprocess = $hash->{".fhem"}{subprocess}; my @response = $subprocess->readFromChild(); - if ( !defined(@response) ) { + Log3 $name, 3, + "GardenaSmartBridge ($name) - Response ist: " . Dumper $response; + + if ( scalar(@response) == 0 ) { Log3( $name, 5, qq{GardenaSmartBridge ($name) - still waiting ($subprocess->{lasterror}).} ); diff --git a/controls_GardenaSmartDevice.txt b/controls_GardenaSmartDevice.txt index 54905ea..8f94b7c 100644 --- a/controls_GardenaSmartDevice.txt +++ b/controls_GardenaSmartDevice.txt @@ -1,2 +1,2 @@ -UPD 2022-02-01_11:52:56 49880 FHEM/73_GardenaSmartBridge.pm +UPD 2022-02-01_12:42:22 49983 FHEM/73_GardenaSmartBridge.pm UPD 2022-01-31_19:35:42 56993 FHEM/74_GardenaSmartDevice.pm