From 31326ad15897f4f323c3c079dc5350a81fdc11d7 Mon Sep 17 00:00:00 2001 From: Candas1 Date: Mon, 25 Apr 2022 21:21:52 +0200 Subject: [PATCH] Update comms.c --- Src/comms.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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;