diff --git a/prosjekt.X/command-handler.c b/prosjekt.X/command-handler.c index 2772a4a..e9ade45 100644 --- a/prosjekt.X/command-handler.c +++ b/prosjekt.X/command-handler.c @@ -14,10 +14,11 @@ void parse_command(uint8_t command[], uint8_t command_len) { context.command = UNKNOWN_COMMAND; } - uint8_t foo = command[0]; + // Extract the first byte, which contains the command + uint8_t command_byte = command[0]; // Figure out which command to run - switch (foo) { + switch (command_byte) { case 0x11: // Read config context.command = READ_CONFIG; break;