fix 'rereadcfg'

git-svn-id: https://svn.fhem.de/fhem/trunk@3175 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
ntruchsess
2013-05-13 18:48:20 +00:00
parent d5acec2e66
commit 75bab20caf

View File

@@ -82,9 +82,11 @@ sub FRM_Define($$) {
#####################################
sub FRM_Undef($) {
my $hash = @_;
my $hash = shift;
FRM_forall_clients($hash,\&FRM_Client_Unassign,undef);
DevIo_Disconnected($hash);
if (defined $hash->{DeviceName}) {
DevIo_Disconnected($hash);
};
my $device = $hash->{FirmataDevice};
if (defined $device) {
if (defined $device->{io}) {