]> git.donarmstrong.com Git - qmk_firmware.git/blobdiff - users/drashna/tap_dances.c
Update to drashna keymaps and userspace - RGB edition (#4143)
[qmk_firmware.git] / users / drashna / tap_dances.c
index c9e4b1d0ff258c6d5f15402c0e20de78fc5a24c3..3466758530ac28b7cdd2f531345c1ee2e4df11c0 100644 (file)
@@ -38,16 +38,16 @@ qk_tap_dance_action_t tap_dance_actions[] = {
 
 // Sends the key press to system, but only if on the Diablo layer
 void send_diablo_keystroke(uint8_t diablo_key) {
-  if (biton32(layer_state) == _DIABLO) {
+  if (IS_LAYER_ON(_DIABLO)) {
     switch (diablo_key) {
       case 0:
-        tap(KC_1); break;
+        tap_code(KC_1); break;
       case 1:
-        tap(KC_2); break;
+        tap_code(KC_2); break;
       case 2:
-        tap(KC_3); break;
+        tap_code(KC_3); break;
       case 3:
-        tap(KC_4); break;
+        tap_code(KC_4); break;
     }
   }
 }