diff --git a/src/datIf.cpp b/src/datIf.cpp index a1490c8..0299745 100644 --- a/src/datIf.cpp +++ b/src/datIf.cpp @@ -107,6 +107,7 @@ char T_datif::datif_cycleSend() if (check4FDshortCmd()) { + cycl_running=1; b_ret=sendFDcmd_get(&nextWrCmd, &nextRdCmd, &blockNum, &dat1, &dat2, &dat3, &dat4); if (b_ret) { @@ -115,10 +116,12 @@ char T_datif::datif_cycleSend() myDCIF->setUserReadData(nextRdCmd); myDCIF->sendUserData(selectedSlaveAddr); } + return 0; } if (check4FDlongCmd()) { + cycl_running=1; b_ret=longFDcmd_get(&nextWrCmd, &nextRdCmd, &blockNum, &length, data); if (b_ret) { @@ -126,6 +129,7 @@ char T_datif::datif_cycleSend() myDCIF->setUserReadData(nextRdCmd); myDCIF->sendUserData(selectedSlaveAddr); } + return 0; } // direct commands have highest prio (setting OUTPUTS)