diff options
author | Peter Johanson <[email protected]> | 2023-06-20 22:23:06 +0000 |
---|---|---|
committer | Pete Johanson <[email protected]> | 2023-06-20 17:36:37 -0600 |
commit | b259d5a22e423458b94bd1aba70fd62f327528c0 (patch) | |
tree | 78076c3b691c032ccd6b617e3d3fb9edab5e4515 /app/src/behaviors | |
parent | 805dd4a53bc9ff7fe1f7eb5c9ea332a9affbc5f9 (diff) | |
download | zmk-b259d5a22e423458b94bd1aba70fd62f327528c0.tar.gz zmk-b259d5a22e423458b94bd1aba70fd62f327528c0.zip |
fix(sensors): Sensor rotate behavior fix for layers.
* Properly return transparent value when processing mode
for higher disabled layers means the processing is ignored.
Diffstat (limited to 'app/src/behaviors')
-rw-r--r-- | app/src/behaviors/behavior_sensor_rotate_common.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/app/src/behaviors/behavior_sensor_rotate_common.c b/app/src/behaviors/behavior_sensor_rotate_common.c index eea7bf4847..586cac3fdf 100644 --- a/app/src/behaviors/behavior_sensor_rotate_common.c +++ b/app/src/behaviors/behavior_sensor_rotate_common.c @@ -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]; @@ -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); |