Skip to content

Commit 93fb71f

Browse files
committed
VC: Add ATI33 command to display the VC states
1 parent a807ee4 commit 93fb71f

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
@@ -234,6 +234,7 @@ bool commandAT(const char * commandString)
234234
systemPrintln(" ATI30 - Return myVc value");
235235
systemPrintln(" ATI31 - Display the VC details");
236236
systemPrintln(" ATI32 - Dump the NVM unique ID table");
237+
systemPrintln(" ATI33 - Display the VC states");
237238
return true;
238239

239240
case ('0'): //ATI0 - Show user settable parameters
@@ -835,6 +836,17 @@ bool commandAT(const char * commandString)
835836
systemPrintln("Empty");
836837
}
837838
return true;
839+
840+
case ('3'): //ATI33 - Display the VC states
841+
for (int vcIndex = 0; vcIndex < MAX_VC; vcIndex++)
842+
{
843+
systemPrint("VC ");
844+
systemPrint(vcIndex);
845+
systemPrint(": ");
846+
systemPrintln(vcStateNames[virtualCircuitList[vcIndex].vcState]);
847+
}
848+
return true;
849+
838850
}
839851
}
840852
if ((commandString[2] == 'I') && (commandString[3] == '5') && (commandLength == 5))

0 commit comments

Comments
 (0)