Rename foo in command handler to a more descirptive name
"foo" -> "command_byte"
This commit is contained in:
parent
7e59368252
commit
b1ca4c05bf
@ -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;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user