mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-04-25 03:39:21 +00:00
OWX_ID: fix calling into sync OWX while in async-mode
git-svn-id: https://svn.fhem.de/fhem/trunk@5527 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
a0afee82ac
commit
d1d2212815
@ -55,7 +55,7 @@ use strict;
|
||||
use warnings;
|
||||
sub Log($$);
|
||||
|
||||
my $owx_version="5.11";
|
||||
my $owx_version="5.12";
|
||||
#-- declare variables
|
||||
my %gets = (
|
||||
"present" => "",
|
||||
@ -347,7 +347,11 @@ sub OWID_GetValues($) {
|
||||
#-- measure elapsed time
|
||||
my $t0 = [gettimeofday];
|
||||
|
||||
$value = OWX_Verify($master,$hash->{ROM_ID});
|
||||
if( $hash->{ASYNC} ){
|
||||
$value = OWX_ASYNC_Verify($master,$hash->{ROM_ID});
|
||||
} else {
|
||||
$value = OWX_Verify($master,$hash->{ROM_ID});
|
||||
}
|
||||
|
||||
#my $thr = threads->create('OWX_Verify', $master, $hash->{ROM_ID});
|
||||
#$thr->detach();
|
||||
|
Loading…
x
Reference in New Issue
Block a user