correct no-response command handling

git-svn-id: svn://svn.code.sf.net/p/fhem/code/trunk@3471 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
martinp876
2013-07-22 05:32:56 +00:00
parent 55781fd9bf
commit e96b54c92c

View File

@@ -2916,8 +2916,14 @@ sub CUL_HM_responseSetup($$) {#store all we need to handle the response
CUL_HM_protState($hash,"CMDs_processing...");
}
else{# no answer expected
CUL_HM_protState($hash,"CMDs_done".($hash->{helper}{burstEvtCnt}?
if($hash->{cmdStack} && scalar @{$hash->{cmdStack}}){
CUL_HM_protState($hash,"CMDs_processing...");
InternalTimer(gettimeofday()+.5, "CUL_HM_ProcessCmdStack", $hash, 0);
}
else{
CUL_HM_protState($hash,"CMDs_done".($hash->{helper}{burstEvtCnt}?
("_events:".$hash->{helper}{burstEvtCnt}):""));
}
}
if($hash->{cmdStack} && scalar @{$hash->{cmdStack}}){
$hash->{protCmdPend} = scalar @{$hash->{cmdStack}}." CMDs pending";