37_harmony.pm: don't write to disconnected devices
git-svn-id: https://svn.fhem.de/fhem/trunk@6954 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
@@ -1172,6 +1172,8 @@ harmony_send($$)
|
||||
my ($hash, $data) = @_;
|
||||
my $name = $hash->{NAME};
|
||||
|
||||
return undef if( !$hash->{CD} );
|
||||
|
||||
Log3 $name, 4, "$name: send: $data";
|
||||
|
||||
syswrite $hash->{CD}, $data;
|
||||
|
||||
Reference in New Issue
Block a user