Rename foo in command handler to a more descirptive name

"foo" -> "command_byte"
This commit is contained in:
Sebastian H. Gabrielli 2024-04-16 16:17:35 +02:00
parent 7e59368252
commit b1ca4c05bf

View File

@ -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;