Skip to content

Commit 33eef5a

Browse files
authored
Merge pull request #565 from LeeLeahy2/vct-stop-cmd-processing
VCT: Stop the command processor when the VC link fails
2 parents 85406d1 + 240b6ef commit 33eef5a

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

Firmware/Tools/VcServerTest.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -562,6 +562,9 @@ void radioToPcLinkStatus(VC_SERIAL_MESSAGE_HEADER * header, uint8_t * data, uint
562562
break;
563563

564564
case VC_STATE_LINK_DOWN:
565+
//Stop the command processing for this VC
566+
virtualCircuitList[srcVc].activeCommand = CMD_LIST_SIZE;
567+
virtualCircuitList[srcVc].commandTimer = 0;
565568
if (DEBUG_PC_CMD_ISSUE)
566569
printf("VC %d DOWN\n", srcVc);
567570
if (DISPLAY_VC_STATE)

0 commit comments

Comments
 (0)