Browse Source

Added Delay time dynamic keymap's macro feature (#16810)

Co-authored-by: Joel Challis <git@zvecr.com>
Co-authored-by: Ryan <fauxpark@gmail.com>
pull/17638/head
FREEWING.JP 1 year ago
committed by GitHub
parent
commit
61df87ae2c
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 1 deletions
  1. +5
    -1
      quantum/dynamic_keymap.c

+ 5
- 1
quantum/dynamic_keymap.c View File

@ -93,6 +93,10 @@ _Static_assert((DYNAMIC_KEYMAP_EEPROM_MAX_ADDR) - (DYNAMIC_KEYMAP_MACRO_EEPROM_A
# define DYNAMIC_KEYMAP_MACRO_EEPROM_SIZE (DYNAMIC_KEYMAP_EEPROM_MAX_ADDR - DYNAMIC_KEYMAP_MACRO_EEPROM_ADDR + 1)
#endif
#ifndef DYNAMIC_KEYMAP_MACRO_DELAY
# define DYNAMIC_KEYMAP_MACRO_DELAY TAP_CODE_DELAY
#endif
uint8_t dynamic_keymap_get_layer_count(void) {
return DYNAMIC_KEYMAP_LAYER_COUNT;
}
@ -300,6 +304,6 @@ void dynamic_keymap_macro_send(uint8_t id) {
break;
}
}
send_string(data);
send_string_with_delay(data, DYNAMIC_KEYMAP_MACRO_DELAY);
}
}

Loading…
Cancel
Save