diff --git a/Src/comms.c b/Src/comms.c index 73eb93d..71aa770 100644 --- a/Src/comms.c +++ b/Src/comms.c @@ -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;