Skip to content

Commit 76f3929

Browse files
committed
VCT: Properly stop the command processors
1 parent 2c3bcab commit 76f3929

File tree

1 file changed

+12
-1
lines changed

1 file changed

+12
-1
lines changed

Firmware/Tools/VcServerTest.c

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1097,7 +1097,13 @@ void issuePcCommands()
10971097
}
10981098
}
10991099
}
1100+
1101+
//No more PC commands to process
1102+
if (DEBUG_CMD_ISSUE && pcCommandTimer)
1103+
printf("PC command list empty\n");
11001104
pcActiveCommand = CMD_LIST_SIZE;
1105+
pcCommandTimer = 0;
1106+
pcCommandVc = MAX_VC;
11011107
}
11021108
}
11031109

@@ -1296,8 +1302,13 @@ bool issueVcCommands(int vcIndex)
12961302
}
12971303
}
12981304
}
1299-
virtualCircuitList[vcIndex].activeCommand = CMD_LIST_SIZE;
13001305
}
1306+
1307+
//Done processing VC commands
1308+
if (DEBUG_CMD_ISSUE && virtualCircuitList[vcIndex].commandTimer)
1309+
printf ("VC %d command list empty\n", vcIndex);
1310+
virtualCircuitList[vcIndex].activeCommand = CMD_LIST_SIZE;
1311+
virtualCircuitList[vcIndex].commandTimer = 0;
13011312
}
13021313
}
13031314
return false;

0 commit comments

Comments
 (0)