summaryrefslogtreecommitdiff
path: root/keyboards
diff options
context:
space:
mode:
authorMaarten Dekkers <maartenwut@gmail.com>2020-04-24 01:40:01 +0200
committerGitHub <noreply@github.com>2020-04-24 01:40:01 +0200
commit1df8bb3cdbfdee86af579a532c6cfaa5c89fc154 (patch)
treec26fb75438cd1700c34f73ec91ca5ff04d8d65dd /keyboards
parent22a10cc8a3f7d1ff8ba7f75de49ca0feb6d07f7f (diff)
downloadqmk_firmware-1df8bb3cdbfdee86af579a532c6cfaa5c89fc154.tar.gz
qmk_firmware-1df8bb3cdbfdee86af579a532c6cfaa5c89fc154.zip
Update keymap.c
Co-Authored-By: Joel Challis <git@zvecr.com>
Diffstat (limited to 'keyboards')
-rw-r--r--keyboards/maartenwut/ta65/keymaps/default/keymap.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/keyboards/maartenwut/ta65/keymaps/default/keymap.c b/keyboards/maartenwut/ta65/keymaps/default/keymap.c
index 4a04882964..00cd65abb4 100644
--- a/keyboards/maartenwut/ta65/keymaps/default/keymap.c
+++ b/keyboards/maartenwut/ta65/keymaps/default/keymap.c
@@ -20,7 +20,7 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
void encoder_update_user(uint8_t index, bool clockwise) {
if (index == 0) { /* First encoder */
- switch(biton32(layer_state)){
+ switch(get_highest_layer(layer_state)){
case 0: //Layer 0
if (!clockwise) { // Remove ! to reverse direction
tap_code(KC_VOLU);
@@ -44,4 +44,4 @@ void encoder_update_user(uint8_t index, bool clockwise) {
break;
}
}
-} \ No newline at end of file
+}