FRM: fix display of Initialized state on 'set reset'

git-svn-id: svn://svn.code.sf.net/p/fhem/code/trunk@5214 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
ntruchsess
2014-03-13 15:30:30 +00:00
parent 4e11f89bb7
commit dfc00dd3c4

View File

@@ -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";