In-tree migration validation.

This commit is contained in:
Nick Brassel 2024-08-14 12:47:46 +10:00
parent f92d6ec070
commit 21d01dc75d
No known key found for this signature in database
5 changed files with 16 additions and 15 deletions

View File

@ -0,0 +1,8 @@
{
"config": {
"features": {
"console": true,
"debug_matrix_scan_rate": true
}
}
}

View File

@ -1,2 +0,0 @@
CONSOLE_ENABLE = yes
DEBUG_MATRIX_SCAN_RATE_ENABLE = yes

View File

@ -35,9 +35,7 @@ __ENCODER_MAP_GOES_HERE__
__MACRO_OUTPUT_GOES_HERE__
#ifdef OTHER_KEYMAP_C
# if __has_include_next(OTHER_KEYMAP_C)
# include_next OTHER_KEYMAP_C
# endif // __has_include_next(OTHER_KEYMAP_C)
# include OTHER_KEYMAP_C
#endif // OTHER_KEYMAP_C
"""
@ -55,7 +53,10 @@ def _generate_keymap_table(keymap_json):
def _generate_encodermap_table(keymap_json):
lines = ['#if defined(ENCODER_ENABLE) && defined(ENCODER_MAP_ENABLE)', 'const uint16_t PROGMEM encoder_map[][NUM_ENCODERS][NUM_DIRECTIONS] = {']
lines = [
'#if defined(ENCODER_ENABLE) && defined(ENCODER_MAP_ENABLE)',
'const uint16_t PROGMEM encoder_map[][NUM_ENCODERS][NUM_DIRECTIONS] = {',
]
for layer_num, layer in enumerate(keymap_json['encoders']):
if layer_num != 0:
lines[-1] = lines[-1] + ','

View File

@ -163,9 +163,7 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
#ifdef OTHER_KEYMAP_C
# if __has_include_next(OTHER_KEYMAP_C)
# include_next OTHER_KEYMAP_C
# endif // __has_include_next(OTHER_KEYMAP_C)
# include OTHER_KEYMAP_C
#endif // OTHER_KEYMAP_C
@ -202,9 +200,7 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
#ifdef OTHER_KEYMAP_C
# if __has_include_next(OTHER_KEYMAP_C)
# include_next OTHER_KEYMAP_C
# endif // __has_include_next(OTHER_KEYMAP_C)
# include OTHER_KEYMAP_C
#endif // OTHER_KEYMAP_C

View File

@ -28,9 +28,7 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
#ifdef OTHER_KEYMAP_C
# if __has_include_next(OTHER_KEYMAP_C)
# include_next OTHER_KEYMAP_C
# endif // __has_include_next(OTHER_KEYMAP_C)
# include OTHER_KEYMAP_C
#endif // OTHER_KEYMAP_C
"""