From 79419c2f51edb81e485b0ccd84091537b431cb95 Mon Sep 17 00:00:00 2001 From: ntruchsess <> Date: Thu, 13 Mar 2014 15:30:30 +0000 Subject: [PATCH] FRM: fix display of Initialized state on 'set reset' git-svn-id: https://svn.fhem.de/fhem/trunk@5214 2b470e98-0d58-463d-a4d8-8e2adae1ed80 --- fhem/FHEM/10_FRM.pm | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/fhem/FHEM/10_FRM.pm b/fhem/FHEM/10_FRM.pm index 74bb76774..77feaa2a9 100755 --- a/fhem/FHEM/10_FRM.pm +++ b/fhem/FHEM/10_FRM.pm @@ -85,8 +85,6 @@ sub FRM_Define($$) { $hash->{DeviceName} = $dev; my $ret = DevIo_OpenDev($hash, 0, "FRM_DoInit"); - return $ret if (defined $ret and $ret eq ""); - $hash->{STATE}="Initialized"; return $ret; } @@ -383,6 +381,7 @@ sub FRM_DoInit($) { FRM_apply_attribute($shash,"sampling-interval"); FRM_apply_attribute($shash,"i2c-config"); FRM_forall_clients($shash,\&FRM_Init_Client,undef); + $shash->{STATE}="Initialized"; return undef; } Log3 $name,3,"no response from Firmata, closing DevIO";