git-svn-id: https://fhem.svn.sourceforge.net/svnroot/fhem/trunk/fhem@2445 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
@@ -2071,12 +2071,12 @@ sub OWX_Discover_CUNO ($) {
|
|||||||
|
|
||||||
#-- zero the array
|
#-- zero the array
|
||||||
@{$hash->{DEVS}}=();
|
@{$hash->{DEVS}}=();
|
||||||
OWX_ReInit_CUNO($hash,1);
|
OWX_ReInit_CUNO($hash,0);
|
||||||
##CUL_SimpleWrite($owx_hwdevice, "Oc");
|
CUL_SimpleWrite($owx_hwdevice, "Oc");
|
||||||
select(undef,undef,undef,5);
|
select(undef,undef,undef,0.5);
|
||||||
my ($err,$ob) = CUL_ReadAnswer($owx_hwdevice,"",0,undef);
|
my ($err,$ob) = CUL_ReadAnswer($owx_hwdevice,"",0,undef);
|
||||||
if( $ob ){
|
if( $ob ){
|
||||||
#Log 1,"OWX: Answer to ".$owx_hwdevice->{NAME}." device search is ".$ob;
|
Log 3,"OWX: Answer to ".$owx_hwdevice->{NAME}." device search is ".$ob;
|
||||||
foreach my $dx (split(/\n/,$ob)){
|
foreach my $dx (split(/\n/,$ob)){
|
||||||
next if ($dx !~ /^\d\d?\:[0-9a-fA-F]{16}/);
|
next if ($dx !~ /^\d\d?\:[0-9a-fA-F]{16}/);
|
||||||
$dx =~ s/\d+\://;
|
$dx =~ s/\d+\://;
|
||||||
|
|||||||
Reference in New Issue
Block a user