From b1ca4c05bf49c72377854d2c83f8c4e76f8f020f Mon Sep 17 00:00:00 2001 From: "Sebastian H. Gabrielli" Date: Tue, 16 Apr 2024 16:17:35 +0200 Subject: [PATCH] Rename foo in command handler to a more descirptive name "foo" -> "command_byte" --- prosjekt.X/command-handler.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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;