mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-04-17 05:16:02 +00:00
ZWave: patches from fhem-me (forum #19147)
git-svn-id: https://svn.fhem.de/fhem/trunk@5564 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
714ebae901
commit
99cdfac2f2
@ -410,9 +410,10 @@ ZWave_HandleSendStack($)
|
||||
{
|
||||
my $hash = shift;
|
||||
shift @{$hash->{SendStack}};
|
||||
RemoveInternalTimer($hash); # remove timer to avoid re-trigger
|
||||
return if(!@{$hash->{SendStack}});
|
||||
ZWDongle_Write($hash, "00", $hash->{SendStack}->[0], 1);
|
||||
InternalTimer(gettimeofday()+0.1, "ZWave_HandleSendStack", $hash, 0);
|
||||
InternalTimer(gettimeofday()+0.5, "ZWave_HandleSendStack", $hash, 0);
|
||||
}
|
||||
|
||||
#####################################
|
||||
@ -509,7 +510,6 @@ ZWDongle_ReadAnswer($$$)
|
||||
if(!$hash || ($^O !~ /Win/ && !defined($hash->{FD})));
|
||||
my $to = ($hash->{RA_Timeout} ? $hash->{RA_Timeout} : 3);
|
||||
|
||||
shift @{$hash->{SendStack}}; # Hope this is right.
|
||||
for(;;) {
|
||||
|
||||
my $buf;
|
||||
|
@ -619,7 +619,11 @@ ZWave_Parse($$@)
|
||||
return $ret;
|
||||
|
||||
} elsif($cmd eq "ZW_SEND_DATA") {
|
||||
Log3 $ioName, 2, "$ioName ERROR: SEND_DATA returned $id" if($id ne "00");
|
||||
if($id ne "00") {
|
||||
Log3 $ioName, 2, "$ioName ERROR: SEND_DATA returned $id";
|
||||
} else {
|
||||
ZWave_HandleSendStack($iodev);
|
||||
}
|
||||
return "";
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user