Skip to content

Commit 0e17978

Browse files
committed
VC: Add ATI33 command to display the VC states
1 parent 3cf302a commit 0e17978

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

Firmware/LoRaSerial/Commands.ino

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -231,6 +231,7 @@ bool commandAT(const char * commandString)
231231
systemPrintln(" ATI30 - Return myVc value");
232232
systemPrintln(" ATI31 - Display the VC details");
233233
systemPrintln(" ATI32 - Dump the NVM unique ID table");
234+
systemPrintln(" ATI33 - Display the VC states");
234235
return true;
235236

236237
case ('0'): //ATI0 - Show user settable parameters
@@ -769,6 +770,17 @@ bool commandAT(const char * commandString)
769770
systemPrintln("Empty");
770771
}
771772
return true;
773+
774+
case ('3'): //ATI33 - Display the VC states
775+
for (int vcIndex = 0; vcIndex < MAX_VC; vcIndex++)
776+
{
777+
systemPrint("VC ");
778+
systemPrint(vcIndex);
779+
systemPrint(": ");
780+
systemPrintln(vcStateNames[virtualCircuitList[vcIndex].vcState]);
781+
}
782+
return true;
783+
772784
}
773785
}
774786
if ((commandString[2] == 'I') && (commandString[3] == '5') && (commandLength == 5))

0 commit comments

Comments
 (0)