mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-03-04 11:26:55 +00:00
OWX/OWX_ASYNC: fix racecondition in initialization-sequence of devices
git-svn-id: https://svn.fhem.de/fhem/trunk@6379 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
f78ed4186c
commit
0b7a82a9af
@ -99,7 +99,7 @@ no warnings 'deprecated';
|
|||||||
|
|
||||||
sub Log3($$$);
|
sub Log3($$$);
|
||||||
|
|
||||||
my $owx_version="5.25";
|
my $owx_version="5.26";
|
||||||
#-- fixed raw channel name, flexible channel name
|
#-- fixed raw channel name, flexible channel name
|
||||||
my @owg_fixed = ("A","B");
|
my @owg_fixed = ("A","B");
|
||||||
my @owg_channel = ("A","B");
|
my @owg_channel = ("A","B");
|
||||||
@ -287,8 +287,6 @@ sub OWCOUNT_Init ($) {
|
|||||||
#-- Start timer for updates
|
#-- Start timer for updates
|
||||||
RemoveInternalTimer($hash);
|
RemoveInternalTimer($hash);
|
||||||
InternalTimer(gettimeofday()+10, "OWCOUNT_GetValues", $hash, 0);
|
InternalTimer(gettimeofday()+10, "OWCOUNT_GetValues", $hash, 0);
|
||||||
#--
|
|
||||||
readingsSingleUpdate($hash,"state","Initialized",1);
|
|
||||||
return undef;
|
return undef;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -82,7 +82,7 @@ no warnings 'deprecated';
|
|||||||
|
|
||||||
sub Log($$);
|
sub Log($$);
|
||||||
|
|
||||||
my $owx_version="5.19";
|
my $owx_version="5.20";
|
||||||
#-- flexible channel name
|
#-- flexible channel name
|
||||||
my $owg_channel;
|
my $owg_channel;
|
||||||
|
|
||||||
@ -303,8 +303,6 @@ sub OWMULTI_Init ($) {
|
|||||||
#-- Start timer for updates
|
#-- Start timer for updates
|
||||||
RemoveInternalTimer($hash);
|
RemoveInternalTimer($hash);
|
||||||
InternalTimer(gettimeofday()+10, "OWMULTI_GetValues", $hash, 0);
|
InternalTimer(gettimeofday()+10, "OWMULTI_GetValues", $hash, 0);
|
||||||
#--
|
|
||||||
readingsSingleUpdate($hash,"state","Initialized",1);
|
|
||||||
return undef;
|
return undef;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -89,7 +89,7 @@ no warnings 'deprecated';
|
|||||||
|
|
||||||
sub Log($$);
|
sub Log($$);
|
||||||
|
|
||||||
my $owx_version="5.19";
|
my $owx_version="5.20";
|
||||||
#-- fixed raw channel name, flexible channel name
|
#-- fixed raw channel name, flexible channel name
|
||||||
my @owg_fixed = ("A","B","C","D","E","F","G","H");
|
my @owg_fixed = ("A","B","C","D","E","F","G","H");
|
||||||
my @owg_channel = ("A","B","C","D","E","F","G","H");
|
my @owg_channel = ("A","B","C","D","E","F","G","H");
|
||||||
@ -289,8 +289,6 @@ sub OWSWITCH_Init ($) {
|
|||||||
#-- Start timer for updates
|
#-- Start timer for updates
|
||||||
RemoveInternalTimer($hash);
|
RemoveInternalTimer($hash);
|
||||||
InternalTimer(gettimeofday()+10, "OWSWITCH_GetValues", $hash, 0);
|
InternalTimer(gettimeofday()+10, "OWSWITCH_GetValues", $hash, 0);
|
||||||
#--
|
|
||||||
readingsSingleUpdate($hash,"state","Initialized",1);
|
|
||||||
return undef;
|
return undef;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -86,7 +86,7 @@ no warnings 'deprecated';
|
|||||||
sub Log3($$$);
|
sub Log3($$$);
|
||||||
sub AttrVal($$$);
|
sub AttrVal($$$);
|
||||||
|
|
||||||
my $owx_version="5.25";
|
my $owx_version="5.26";
|
||||||
|
|
||||||
my %gets = (
|
my %gets = (
|
||||||
"id" => "",
|
"id" => "",
|
||||||
@ -277,8 +277,6 @@ sub OWTHERM_Init ($) {
|
|||||||
#-- Start timer for updates
|
#-- Start timer for updates
|
||||||
RemoveInternalTimer($hash);
|
RemoveInternalTimer($hash);
|
||||||
InternalTimer(gettimeofday()+10, "OWTHERM_GetValues", $hash, 0);
|
InternalTimer(gettimeofday()+10, "OWTHERM_GetValues", $hash, 0);
|
||||||
#--
|
|
||||||
readingsSingleUpdate($hash,"state","Initialized",1);
|
|
||||||
return undef;
|
return undef;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user