summaryrefslogtreecommitdiff
path: root/keyboards
diff options
context:
space:
mode:
authorFlorian Didron <fdidron@users.noreply.github.com>2023-12-21 15:13:41 +0700
committerGitHub <noreply@github.com>2023-12-21 15:13:41 +0700
commit1a7e7e0563fd1dd01a6574dd4d0af8fc1add0172 (patch)
tree795abb06b704f7426525ff43a531e454c7023650 /keyboards
parent47c470ea25b7c0c07182090dd3c5e54b34c2d701 (diff)
Remove pairing, fw22 (#379)
* chore: remove pairing code * fix: driver let total macro
Diffstat (limited to 'keyboards')
-rw-r--r--keyboards/ergodox_ez/ergodox_ez.c32
-rw-r--r--keyboards/planck/ez/ez.c35
2 files changed, 0 insertions, 67 deletions
diff --git a/keyboards/ergodox_ez/ergodox_ez.c b/keyboards/ergodox_ez/ergodox_ez.c
index 0432ec79ab..7dbe0bed18 100644
--- a/keyboards/ergodox_ez/ergodox_ez.c
+++ b/keyboards/ergodox_ez/ergodox_ez.c
@@ -389,11 +389,6 @@ void eeconfig_init_kb(void) { // EEPROM is getting reset!
eeconfig_init_user();
}
-#ifdef ORYX_ENABLE
-static uint16_t loops = 0;
-static bool is_on = false;
-#endif
-
#ifdef DYNAMIC_MACRO_ENABLE
static bool is_dynamic_recording = false;
static uint16_t dynamic_loop_timer;
@@ -411,33 +406,6 @@ void dynamic_macro_record_end_user(int8_t direction) {
#endif
void matrix_scan_kb(void) {
-#ifdef ORYX_ENABLE
- if(rawhid_state.pairing == true) {
- if(loops == 0) {
- ergodox_right_led_1_off();
- ergodox_right_led_2_off();
- ergodox_right_led_3_off();
- }
- if(loops % PAIRING_BLINK_STEPS == 0) {
- if(is_on) {
- ergodox_right_led_2_off();
- } else {
- ergodox_right_led_2_on();
- }
- is_on ^= 1;
- }
- if(loops > PAIRING_BLINK_END) {
- rawhid_state.pairing = false;
- layer_state_set_user(layer_state);
- loops = 0;
- }
- loops++;
- } else if(loops > 0) {
- loops = 0;
- layer_state_set_user(layer_state);
- }
-#endif
-
#ifdef DYNAMIC_MACRO_ENABLE
if (is_dynamic_recording) {
ergodox_right_led_1_off();
diff --git a/keyboards/planck/ez/ez.c b/keyboards/planck/ez/ez.c
index 93a17be293..b387926968 100644
--- a/keyboards/planck/ez/ez.c
+++ b/keyboards/planck/ez/ez.c
@@ -301,11 +301,6 @@ bool music_mask_kb(uint16_t keycode) {
}
#endif
-#ifdef ORYX_ENABLE
-static uint16_t loops = 0;
-static bool is_on = false;
-#endif
-
#ifdef DYNAMIC_MACRO_ENABLE
static bool is_dynamic_recording = false;
static uint16_t dynamic_loop_timer;
@@ -323,36 +318,6 @@ void dynamic_macro_record_end_user(int8_t direction) {
#endif
void matrix_scan_kb(void) {
-#ifdef ORYX_ENABLE
- if(rawhid_state.pairing == true) {
- if(loops == 0) {
- //lights off
- }
- if(loops % PAIRING_BLINK_STEPS == 0) {
- if(is_on) {
- planck_ez_left_led_on();
- planck_ez_right_led_off();
- }
- else {
- planck_ez_left_led_off();
- planck_ez_right_led_on();
- }
- is_on ^= 1;
- }
- if(loops > PAIRING_BLINK_END * 2) {
- rawhid_state.pairing = false;
- loops = 0;
- planck_ez_left_led_off();
- planck_ez_right_led_off();
- }
- loops++;
- }
- else if(loops > 0) {
- loops = 0;
- planck_ez_left_led_off();
- planck_ez_right_led_off();
- }
-#endif
#ifdef DYNAMIC_MACRO_ENABLE
if (is_dynamic_recording) {
if (timer_elapsed(dynamic_loop_timer) > 1)