Update comms.c

This commit is contained in:
Candas1
2022-04-25 21:21:52 +02:00
committed by GitHub
parent ac489d51e6
commit 31326ad158

View File

@ -487,7 +487,7 @@ void handle_input(uint8_t *userCommand, uint32_t len)
// If there is already an unprocessed command, exit
if (command.semaphore == 1) return;
if (*userCommand != '$') return; // reject if first character is not #
if (*userCommand != '$') return; // reject if first character is not $
// Check end of line
userCommand+=len-1; // Go to last char
@ -496,7 +496,7 @@ void handle_input(uint8_t *userCommand, uint32_t len)
return;
}
userCommand-=len-1; // Come back
userCommand++; // Skip #
userCommand++; // Skip $
int8_t cindex = -1;
int8_t pindex = -1;