Skip to content

Commit

Permalink
fix(sensors): Sensor rotate behavior fix for layers.
Browse files Browse the repository at this point in the history
* Properly return transparent value when processing mode
  for higher disabled layers means the processing is ignored.
  • Loading branch information
petejohanson committed Jun 20, 2023
1 parent 805dd4a commit b259d5a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/src/behaviors/behavior_sensor_rotate_common.c
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ int zmk_behavior_sensor_rotate_common_process(struct zmk_behavior_binding *bindi

if (mode != BEHAVIOR_SENSOR_BINDING_PROCESS_MODE_TRIGGER) {
data->triggers[sensor_index] = 0;
return 0;
return ZMK_BEHAVIOR_TRANSPARENT;
}

int triggers = data->triggers[sensor_index];
Expand All @@ -83,7 +83,7 @@ int zmk_behavior_sensor_rotate_common_process(struct zmk_behavior_binding *bindi
triggered_binding.param1 = binding->param2;
}
} else {
return 0;
return ZMK_BEHAVIOR_TRANSPARENT;
}

LOG_DBG("Sensor binding: %s", binding->behavior_dev);
Expand Down

0 comments on commit b259d5a

Please sign in to comment.