Fix: set flag in datIf_cycleSend()

This commit is contained in:
Siegfried Siegert 2023-05-23 15:45:18 +02:00
parent 75b597586f
commit f4be010e1a
Signed by: SiegfriedSiegert
GPG Key ID: 68371E015E8F0B03

View File

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