mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-01-31 18:59:33 +00:00
OWTHERM_GetValues: fix returnvalue
git-svn-id: https://svn.fhem.de/fhem/trunk@6269 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
beca4cd62a
commit
1a1e73dc5e
@ -993,8 +993,9 @@ sub OWX_ASYNC_PT_Execute($$$$$) {
|
|||||||
sub OWX_ASYNC_Schedule($$) {
|
sub OWX_ASYNC_Schedule($$) {
|
||||||
my ( $hash, $task ) = @_;
|
my ( $hash, $task ) = @_;
|
||||||
my $master = $hash->{TYPE} eq "OWX_ASYNC" ? $hash : $hash->{IODev};
|
my $master = $hash->{TYPE} eq "OWX_ASYNC" ? $hash : $hash->{IODev};
|
||||||
die "OWX_ASYNC_Schedule: Master not Active" unless $master->{STATE} eq "Active";
|
|
||||||
my $name = $hash->{NAME};
|
my $name = $hash->{NAME};
|
||||||
|
Log3 ($master->{NAME},5,"OWX_ASYNC_Schedule master: ".$master->{NAME}.", task: ".$name);
|
||||||
|
die "OWX_ASYNC_Schedule: Master not Active" unless $master->{STATE} eq "Active";
|
||||||
$task->{ExecuteTime} = gettimeofday() unless (defined $task->{ExecuteTime});
|
$task->{ExecuteTime} = gettimeofday() unless (defined $task->{ExecuteTime});
|
||||||
if (defined $master->{tasks}->{$name}) {
|
if (defined $master->{tasks}->{$name}) {
|
||||||
push @{$master->{tasks}->{$name}}, $task;
|
push @{$master->{tasks}->{$name}}, $task;
|
||||||
|
@ -1032,7 +1032,7 @@ sub OWXTHERM_GetValues($) {
|
|||||||
eval {
|
eval {
|
||||||
OWXTHERM_BinValues($hash,undef,$owx_dev,undef,undef,substr($res,10,9));
|
OWXTHERM_BinValues($hash,undef,$owx_dev,undef,undef,substr($res,10,9));
|
||||||
};
|
};
|
||||||
return $@;
|
return $@ ? $@ : undef;
|
||||||
}
|
}
|
||||||
|
|
||||||
#######################################################################################
|
#######################################################################################
|
||||||
|
Loading…
Reference in New Issue
Block a user