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

9e564f093ae38c920678293870ddba770454d80e — František Boháček 4 years ago 16f490e
fix: comands uninitialised memory access
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
@@ 149,7 149,7 @@ int16_t commands_check_input(commands_t * commands) {

  commands_update_rotation_encoders(&commands->encoders);
  rotation_encoders_t encoders = commands->encoders;
  for (int i = 0; i < commands->size; i++) {
  for (int i = 0; i < commands->count; i++) {
    command_t command = commands->commands[i];
    input_t input = command.input;
    if (input.type != IN_ENCODER_ROTATE && input.type != IN_ENCODER_CLICK) {