Skip to content

Commit c360b10

Browse files
committed
Comments in command scripts are OK
at-netID = 2 # My private network Translates to AT-NETID=2
1 parent 183a5d6 commit c360b10

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

Firmware/LoRaSerial/Commands.ino

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -911,6 +911,17 @@ char * trimCommand()
911911
int index;
912912
int j;
913913

914+
//Remove the comment
915+
for (index = 0; index < commandLength; index++)
916+
{
917+
if (commandBuffer[index] == '#')
918+
{
919+
commandBuffer[index] = 0;
920+
commandLength = index;
921+
break;
922+
}
923+
}
924+
914925
//Remove the white space
915926
for (index = 0; index < commandLength; index++)
916927
{

0 commit comments

Comments
 (0)