Reset macros as well.

This commit is contained in:
Nick Brassel 2023-01-05 11:08:45 +11:00
parent 312a261a4b
commit 8829d0431c
No known key found for this signature in database
2 changed files with 4 additions and 2 deletions

View File

@ -20,6 +20,7 @@ void eeconfig_init_via(void);
#elif defined(DYNAMIC_KEYMAP_ENABLE)
bool dynamic_keymap_is_valid(void);
void dynamic_keymap_reset(void);
void dynamic_keymap_macro_reset(void);
#endif
/** \brief eeconfig enable
@ -89,6 +90,7 @@ void eeconfig_init_quantum(void) {
eeconfig_init_via();
#elif defined(DYNAMIC_KEYMAP_ENABLE)
dynamic_keymap_reset();
dynamic_keymap_macro_reset();
#endif
eeconfig_init_kb();

View File

@ -27,7 +27,7 @@ uint16_t keycode_at_keymap_location_raw(uint8_t layer_num, uint8_t row, uint8_t
if (layer_num < NUM_KEYMAP_LAYERS && row < MATRIX_ROWS && column < MATRIX_COLS) {
return pgm_read_word(&keymaps[layer_num][row][column]);
}
return KC_NO;
return KC_TRANSPARENT;
}
__attribute__((weak)) uint16_t keycode_at_keymap_location(uint8_t layer_num, uint8_t row, uint8_t column) {
@ -48,7 +48,7 @@ uint16_t keycode_at_encodermap_location_raw(uint8_t layer_num, uint8_t encoder_i
if (layer_num < NUM_ENCODERMAP_LAYERS && encoder_idx < NUM_ENCODERS) {
return pgm_read_word(&encoder_map[layer_num][encoder_idx][clockwise ? 0 : 1]);
}
return KC_NO;
return KC_TRANSPARENT;
}
__attribute__((weak)) uint16_t keycode_at_encodermap_location(uint8_t layer_num, uint8_t encoder_idx, bool clockwise) {