diff options
| author | Zach Nielsen <nielsen.zac@gmail.com> | 2016-11-10 13:47:07 -0800 |
|---|---|---|
| committer | Zach Nielsen <nielsen.zac@gmail.com> | 2016-11-10 13:47:07 -0800 |
| commit | 80c5ada3394c5ad8087df00ef878eb2cbcd87d70 (patch) | |
| tree | 2d4346189edede5cc8671b7cfc7c2be0f8c511a0 | |
| parent | f388bb5bdacb39a5309ca7594940184bbf35e84b (diff) | |
| download | qmk_firmware-80c5ada3394c5ad8087df00ef878eb2cbcd87d70.tar.gz qmk_firmware-80c5ada3394c5ad8087df00ef878eb2cbcd87d70.zip | |
Missed removing a function
| -rw-r--r-- | keyboards/planck/keymaps/zach/zach_common_functions.c | 23 | ||||
| -rw-r--r-- | keyboards/preonic/keymaps/zach/zach_common_functions.c | 23 |
2 files changed, 0 insertions, 46 deletions
diff --git a/keyboards/planck/keymaps/zach/zach_common_functions.c b/keyboards/planck/keymaps/zach/zach_common_functions.c index 1f907e6cb..b77f2b241 100644 --- a/keyboards/planck/keymaps/zach/zach_common_functions.c +++ b/keyboards/planck/keymaps/zach/zach_common_functions.c | |||
| @@ -70,29 +70,6 @@ float unilin[][2] = SONG(UNICODE_LINUX); | |||
| 70 | #ifdef TAP_DANCE_ENABLE | 70 | #ifdef TAP_DANCE_ENABLE |
| 71 | #define TAPPING_TERM 200 | 71 | #define TAPPING_TERM 200 |
| 72 | 72 | ||
| 73 | uint8_t Lstate = 0, Rstate = 0; | ||
| 74 | uint32_t Ltimer = 0, Rtimer = 0; | ||
| 75 | uint32_t Ltimes[3], Rtimes[4]; // Ratio of tap times should be about 1.335 (L/R) | ||
| 76 | void rhythm_parse(void){ | ||
| 77 | int L = Ltimes[0] + Ltimes[1] + Ltimes[2]; // Start to end time | ||
| 78 | int R = Rtimes[0] + Rtimes[1] + Rtimes[2] + Rtimes[3]; | ||
| 79 | if(abs(R-L) > 10){ | ||
| 80 | tap(KC_N); tap(KC_O); | ||
| 81 | return; | ||
| 82 | } else { | ||
| 83 | L = (L / 3)*100; // Average time per tap * 100 | ||
| 84 | R = (R / 4); | ||
| 85 | if(abs(abs(L/R)-133) > 1){ | ||
| 86 | tap(KC_N); tap(KC_O); | ||
| 87 | tap(KC_P); tap(KC_E); | ||
| 88 | return; | ||
| 89 | } else { | ||
| 90 | tap(KC_O); tap(KC_K); | ||
| 91 | return; | ||
| 92 | } | ||
| 93 | } | ||
| 94 | }; | ||
| 95 | |||
| 96 | void dance_raise_press(qk_tap_dance_state_t *state, void *user_data){// Called on each tap | 73 | void dance_raise_press(qk_tap_dance_state_t *state, void *user_data){// Called on each tap |
| 97 | switch(state->count){ // Only turn the layer on once | 74 | switch(state->count){ // Only turn the layer on once |
| 98 | case 1: | 75 | case 1: |
diff --git a/keyboards/preonic/keymaps/zach/zach_common_functions.c b/keyboards/preonic/keymaps/zach/zach_common_functions.c index 1f907e6cb..b77f2b241 100644 --- a/keyboards/preonic/keymaps/zach/zach_common_functions.c +++ b/keyboards/preonic/keymaps/zach/zach_common_functions.c | |||
| @@ -70,29 +70,6 @@ float unilin[][2] = SONG(UNICODE_LINUX); | |||
| 70 | #ifdef TAP_DANCE_ENABLE | 70 | #ifdef TAP_DANCE_ENABLE |
| 71 | #define TAPPING_TERM 200 | 71 | #define TAPPING_TERM 200 |
| 72 | 72 | ||
| 73 | uint8_t Lstate = 0, Rstate = 0; | ||
| 74 | uint32_t Ltimer = 0, Rtimer = 0; | ||
| 75 | uint32_t Ltimes[3], Rtimes[4]; // Ratio of tap times should be about 1.335 (L/R) | ||
| 76 | void rhythm_parse(void){ | ||
| 77 | int L = Ltimes[0] + Ltimes[1] + Ltimes[2]; // Start to end time | ||
| 78 | int R = Rtimes[0] + Rtimes[1] + Rtimes[2] + Rtimes[3]; | ||
| 79 | if(abs(R-L) > 10){ | ||
| 80 | tap(KC_N); tap(KC_O); | ||
| 81 | return; | ||
| 82 | } else { | ||
| 83 | L = (L / 3)*100; // Average time per tap * 100 | ||
| 84 | R = (R / 4); | ||
| 85 | if(abs(abs(L/R)-133) > 1){ | ||
| 86 | tap(KC_N); tap(KC_O); | ||
| 87 | tap(KC_P); tap(KC_E); | ||
| 88 | return; | ||
| 89 | } else { | ||
| 90 | tap(KC_O); tap(KC_K); | ||
| 91 | return; | ||
| 92 | } | ||
| 93 | } | ||
| 94 | }; | ||
| 95 | |||
| 96 | void dance_raise_press(qk_tap_dance_state_t *state, void *user_data){// Called on each tap | 73 | void dance_raise_press(qk_tap_dance_state_t *state, void *user_data){// Called on each tap |
| 97 | switch(state->count){ // Only turn the layer on once | 74 | switch(state->count){ // Only turn the layer on once |
| 98 | case 1: | 75 | case 1: |
