~ruther/CTU-FEE-B0B35APO-Semestral-project

8e2364f03eb822b5086732b7f8ceee8e59a874a2 — František Boháček 3 years ago 7400879
feat: add keyboard filter 0 for any key
1 files changed, 1 insertions(+), 1 deletions(-)

M lib-pheripherals/src/input.c
M lib-pheripherals/src/input.c => lib-pheripherals/src/input.c +1 -1
@@ 83,7 83,7 @@ int16_t commands_execute(commands_t * commands, input_type_t type, char filter,
  for (int i = 0; i < commands->count; i++) {
    command_t command = commands->commands[i];

    if (command.input.filter == filter && command.input.type == type) {
    if ((command.input.filter == filter || command.input.filter == 0) && command.input.type == type) {
      command.cmd(command.state, amount);
      commands_executed++;
    }

Do not follow this link