Skip to content

Commit

Permalink
Added Delay time dynamic keymap's macro feature (#16810)
Browse files Browse the repository at this point in the history
Co-authored-by: Joel Challis <[email protected]>
Co-authored-by: Ryan <[email protected]>
  • Loading branch information
3 people authored Jul 11, 2022
1 parent 52e9ed7 commit 61df87a
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion quantum/dynamic_keymap.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down Expand Up @@ -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);
}
}

0 comments on commit 61df87a

Please sign in to comment.