Removed extra code
parent
e6cc6bfa10
commit
7835772425
|
@ -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) {
|
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
|
#ifdef CAPS_LOCK_STATUS
|
||||||
led_t led_state = host_keyboard_led_state();
|
led_t led_state = host_keyboard_led_state();
|
||||||
|
|
|
@ -95,7 +95,7 @@ inline void ergodox_led_all_set(uint8_t n) {
|
||||||
ergodox_right_led_3_set(n);
|
ergodox_right_led_3_set(n);
|
||||||
}
|
}
|
||||||
|
|
||||||
enum ergodox_ez_keycodes {
|
enum betalupi_keycodes {
|
||||||
LED_LEVEL = SAFE_RANGE,
|
LED_LEVEL = SAFE_RANGE,
|
||||||
TOGGLE_LAYER_COLOR,
|
TOGGLE_LAYER_COLOR,
|
||||||
// Custom RGBLIGHT macros
|
// Custom RGBLIGHT macros
|
||||||
|
|
Loading…
Reference in New Issue