diff options
author | Jesus Climent <climent@gmail.com> | 2022-11-20 03:57:13 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-11-20 00:57:13 -0800 |
commit | 6f8bbb16329d87eacb5bc4091b11a127630bdb06 (patch) | |
tree | 1278dc9190a4182cca411c9ed1cb963aa2919cab /keyboards/atreyu/rev1/rev1.c | |
parent | eb63857237c778f8736395161b331dcc19e283ae (diff) |
[Keyboard] Small fixes for the Atreyu rev1 keyboard (#19098)
Diffstat (limited to 'keyboards/atreyu/rev1/rev1.c')
-rw-r--r-- | keyboards/atreyu/rev1/rev1.c | 16 |
1 files changed, 5 insertions, 11 deletions
diff --git a/keyboards/atreyu/rev1/rev1.c b/keyboards/atreyu/rev1/rev1.c index 3d6829fbd5..8228f7ede6 100644 --- a/keyboards/atreyu/rev1/rev1.c +++ b/keyboards/atreyu/rev1/rev1.c @@ -14,6 +14,8 @@ * along with this program. If not, see <http://www.gnu.org/licenses/>. */ +#include "rev1.h" + #ifdef ENCODER_ENABLE bool encoder_update_kb(uint8_t index, bool clockwise) { if (!encoder_update_user(index, clockwise)) { @@ -28,18 +30,10 @@ bool encoder_update_kb(uint8_t index, bool clockwise) { } } if (index == 0) { - if (IS_LAYER_ON(_LOWER)) { - if (clockwise) { - tap_code(KC_WH_U); - } else { - tap_code(KC_WH_D); - } + if (clockwise) { + tap_code(KC_WH_U); } else { - if (clockwise) { - tap_code(KC_VOLU); - } else { - tap_code(KC_VOLD); - } + tap_code(KC_WH_D); } } return true; |