Commit e0080b18 authored by Wei Xu's avatar Wei Xu

dynamic ports free bug fix

parent 9e854ab3
Pipeline #169622 passed with stages
in 28 minutes and 47 seconds
......@@ -68,7 +68,7 @@ public class DynamicMathPortFreeCommand extends MathCommand {
connM.addInstruction(new TargetCodeInstruction("__"+portName+"_free_request.push(idx"+n+");\n"));
connM.addInstruction(new TargetCodeInstruction("__"+portName+"_connected[idx"+n+"] = false;\n"));
//connM.addInstruction(new TargetCodeInstruction("__"+portName+"_connected[idx"+n+"] = false;\n"));
idxTest += "(idx"+n+" < 0) || ("+portVar.get().getArraySize()+" <= idx"+n+") || (!__"+portName+"_connected[idx"+n+"])";
......
......@@ -78,6 +78,7 @@ public class DynamicMathPortNewConnectCommand extends MathCommand {
connM.addInstruction(new TargetCodeInstruction(String.format("*id%d = dynamicconnect(%d, __%s_connected, &__%s_connect_request);\n",
n, portVar.get().getArraySize(), portName, portName)));
connM.addInstruction(new TargetCodeInstruction(String.format(" __%s_free_request.push(*id%d);\n", portName,n)));
if(i > 0){
check += " || ";
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment