mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-03-04 05:16:45 +00:00
OWX_FRM: call AfterExecuteFn also for request that don't read 1-Wire data
git-svn-id: https://svn.fhem.de/fhem/trunk@5464 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
a9f7302208
commit
f7510d2480
@ -122,8 +122,9 @@ COMMAND_HANDLER: {
|
|||||||
my $owx_data = pack "C*", @{ $data->{data} };
|
my $owx_data = pack "C*", @{ $data->{data} };
|
||||||
my $owx_device = $request->{device};
|
my $owx_device = $request->{device};
|
||||||
my $context = $request->{context};
|
my $context = $request->{context};
|
||||||
my $writedata = pack "C*", @{ $request->{command}->{'write'} } if ( defined $request->{command}->{'write'} );
|
my $reqcommand = $request->{command};
|
||||||
main::OWX_ASYNC_AfterExecute( $self->{hash}, $context, 1, $request->{'reset'}, $owx_device, $writedata, $request->{'read'}, $owx_data );
|
my $writedata = pack "C*", @{ $reqcommand->{'write'} } if ( defined $reqcommand->{'write'} );
|
||||||
|
main::OWX_ASYNC_AfterExecute( $self->{hash}, $context, 1, $reqcommand->{'reset'}, $owx_device, $writedata, $reqcommand->{'read'}, $owx_data);
|
||||||
delete $self->{requests}->{$id};
|
delete $self->{requests}->{$id};
|
||||||
last;
|
last;
|
||||||
};
|
};
|
||||||
@ -261,7 +262,8 @@ sub execute($$$$$$$) {
|
|||||||
};
|
};
|
||||||
};
|
};
|
||||||
if ($@) {
|
if ($@) {
|
||||||
$self->exit($hash);
|
main::Log3 $hash->{NAME},1,"OWX_FRM: $@";
|
||||||
|
#$self->exit($hash);
|
||||||
};
|
};
|
||||||
|
|
||||||
if ($delay and $success) {
|
if ($delay and $success) {
|
||||||
@ -288,6 +290,9 @@ sub execute($$$$$$$) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
unless ($numread) {
|
||||||
|
main::OWX_ASYNC_AfterExecute( $hash, $context, $success, $reset, $owx_dev, $data, $numread, "" );
|
||||||
|
}
|
||||||
return $success;
|
return $success;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user