Removed extra code
This commit is contained in:
@ -496,37 +496,8 @@ void eeconfig_init_kb(void) {
|
||||
|
||||
|
||||
|
||||
#ifdef DYNAMIC_MACRO_ENABLE
|
||||
static bool is_dynamic_recording = false;
|
||||
static uint16_t dynamic_loop_timer;
|
||||
|
||||
void dynamic_macro_record_start_user(void) {
|
||||
is_dynamic_recording = true;
|
||||
dynamic_loop_timer = timer_read();
|
||||
ergodox_right_led_1_on();
|
||||
}
|
||||
|
||||
void dynamic_macro_record_end_user(int8_t direction) {
|
||||
is_dynamic_recording = false;
|
||||
layer_state_set_user(layer_state);
|
||||
}
|
||||
#endif
|
||||
|
||||
|
||||
|
||||
void matrix_scan_kb(void) {
|
||||
#ifdef DYNAMIC_MACRO_ENABLE
|
||||
if (is_dynamic_recording) {
|
||||
ergodox_right_led_1_off();
|
||||
// if (timer_elapsed(dynamic_loop_timer) > 5)
|
||||
{
|
||||
static uint8_t counter;
|
||||
counter++;
|
||||
if (counter > 100) ergodox_right_led_1_on();
|
||||
dynamic_loop_timer = timer_read();
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
||||
#ifdef CAPS_LOCK_STATUS
|
||||
led_t led_state = host_keyboard_led_state();
|
||||
|
Reference in New Issue
Block a user