Skip to content

Commit

Permalink
switched to uint8 and 16
Browse files Browse the repository at this point in the history
  • Loading branch information
nikchi committed May 30, 2017
1 parent 66e9cf9 commit 5393bc6
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 11 deletions.
2 changes: 1 addition & 1 deletion keyboards/frosty_flake/keymaps/nikchi/config.h
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
#include "../../config.h"

#define TAPPING_TERM 200
#define LEADER_TIMEOUT 400
#define LEADER_TIMEOUT 800

#define DISABLE_SPACE_CADET_ROLLOVER

Expand Down
15 changes: 7 additions & 8 deletions keyboards/frosty_flake/keymaps/nikchi/keymap.c
Original file line number Diff line number Diff line change
Expand Up @@ -65,14 +65,7 @@ enum my_macros {
RIGHTDESK,
CLOSEDESK
};
enum quick {
DISFACE = 0,
TFLIP,
TPUT,
SHRUG,
FACE,
RANDIG
};


// Tap Dance Definitions
qk_tap_dance_action_t tap_dance_actions[] = {
Expand Down Expand Up @@ -174,6 +167,11 @@ void matrix_scan_user(void) {
tap(KC_C);
unregister_code(KC_LCTL);
}
SEQ_THREE_KEYS(KC_L,KC_I,KC_T) { // 🔥
unicode_input_start();
register_hex32(pgm_read_dword(&unicode_map[LIT]));
unicode_input_finish();
}

}
}
Expand Down Expand Up @@ -240,3 +238,4 @@ void cycleMemes(qk_tap_dance_state_t *state, void *user_data) {
}
};


4 changes: 2 additions & 2 deletions quantum/process_keycode/process_tap_dance.c
Original file line number Diff line number Diff line change
Expand Up @@ -132,9 +132,9 @@ bool process_tap_dance(uint16_t keycode, keyrecord_t *record) {
void matrix_scan_tap_dance () {
if (highest_td == -1)
return;
int tap_user_defined;
uint16_t tap_user_defined;

for (int i = 0; i <= highest_td; i++) {
for (uint8_t i = 0; i <= highest_td; i++) {
qk_tap_dance_action_t *action = &tap_dance_actions[i];
if(action->custom_tapping_term > 0 ) {
tap_user_defined = action->custom_tapping_term;
Expand Down

0 comments on commit 5393bc6

Please sign in to comment.