2
0
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:
ntruchsess 2014-07-17 11:14:55 +00:00
parent beca4cd62a
commit 1a1e73dc5e
2 changed files with 3 additions and 2 deletions

View File

@ -993,8 +993,9 @@ sub OWX_ASYNC_PT_Execute($$$$$) {
sub OWX_ASYNC_Schedule($$) {
my ( $hash, $task ) = @_;
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};
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});
if (defined $master->{tasks}->{$name}) {
push @{$master->{tasks}->{$name}}, $task;

View File

@ -1032,7 +1032,7 @@ sub OWXTHERM_GetValues($) {
eval {
OWXTHERM_BinValues($hash,undef,$owx_dev,undef,undef,substr($res,10,9));
};
return $@;
return $@ ? $@ : undef;
}
#######################################################################################