mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-04-22 08:11:44 +00:00
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:
parent
290d6e7328
commit
ac5adad908
@ -1172,6 +1172,8 @@ harmony_send($$)
|
|||||||
my ($hash, $data) = @_;
|
my ($hash, $data) = @_;
|
||||||
my $name = $hash->{NAME};
|
my $name = $hash->{NAME};
|
||||||
|
|
||||||
|
return undef if( !$hash->{CD} );
|
||||||
|
|
||||||
Log3 $name, 4, "$name: send: $data";
|
Log3 $name, 4, "$name: send: $data";
|
||||||
|
|
||||||
syswrite $hash->{CD}, $data;
|
syswrite $hash->{CD}, $data;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user