Commit 98736d94 authored by Evgeny Kusmenko's avatar Evgeny Kusmenko

Merge branch 'freebug' into 'master'

dynamic ports free bug fix

See merge request !33
parents 9e854ab3 e0080b18
Pipeline #170642 passed with stages
in 43 minutes and 54 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