mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-04-07 12:58:13 +00:00
HMCCU: Fixed RPC server start/stop
git-svn-id: https://svn.fhem.de/fhem/trunk@11060 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
10e2e48faa
commit
45e91665c8
@ -103,8 +103,9 @@ sub HMCCUDEV_Define ($@)
|
|||||||
foreach my $d (sort keys %defs) {
|
foreach my $d (sort keys %defs) {
|
||||||
my $ch = $defs{$d};
|
my $ch = $defs{$d};
|
||||||
$hmccu_hash = $ch if ($ch->{TYPE} eq 'HMCCU' && !defined ($hmccu_hash));
|
$hmccu_hash = $ch if ($ch->{TYPE} eq 'HMCCU' && !defined ($hmccu_hash));
|
||||||
next if ($ch->{TYPE} ne 'HMCCUDEV' || $ch->{ccuif} ne 'VirtualDevices' ||
|
next if ($ch->{TYPE} ne 'HMCCUDEV');
|
||||||
$ch->{ccuname} ne 'none');
|
next if ($d eq $name);
|
||||||
|
next if ($ch->{ccuif} ne 'VirtualDevices' || $ch->{ccuname} ne 'none');
|
||||||
$no++;
|
$no++;
|
||||||
}
|
}
|
||||||
return "No IO device found" if (!defined ($hmccu_hash));
|
return "No IO device found" if (!defined ($hmccu_hash));
|
||||||
|
Loading…
x
Reference in New Issue
Block a user