diff --git a/SCinter.c b/SCinter.c index f8fb2140..dcabc06e 100644 --- a/SCinter.c +++ b/SCinter.c @@ -307,7 +307,14 @@ extern char *SkipSpace(char *pPtr); self->eOut = eStatus; Tcl_ResetResult((Tcl_Interp *)self->pTcl); MacroPush(pCon); + pCon->conStatus = 0; iRet = pCommand->OFunc(pCon, self, pCommand->pData, argc, argv); + /* If a task is registered with the dev exec then conStatus is HWBusy*/ + if (pCon->conStatus != HWBusy) { + comCon = SCGetContext(pCon); + if (0 != strcmp("contextdo",comCon.deviceID)) + SCWrite(pCon,"",eFinish); + } MacroPop(); deleteArgv: