diff options
| author | Joel Challis | 2025-04-21 23:27:56 +0200 |
|---|---|---|
| committer | GitHub | 2025-04-21 23:27:56 +0200 |
| commit | c7cb7ba9765b35930a26ec247e362615ffd10ed2 (patch) | |
| tree | bbab7782a3c1937f69a8c105dc06cfa1b7f54346 /quantum/eeconfig.c | |
| parent | ec324af22eddff1f89f33a30c77a678b111c420c (diff) | |
Implement connection keycode logic (#25176)
Diffstat (limited to 'quantum/eeconfig.c')
| -rw-r--r-- | quantum/eeconfig.c | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/quantum/eeconfig.c b/quantum/eeconfig.c index addc07ae53..1e8cfd758a 100644 --- a/quantum/eeconfig.c +++ b/quantum/eeconfig.c @@ -35,6 +35,10 @@ # include "haptic.h" #endif // HAPTIC_ENABLE +#ifdef CONNECTION_ENABLE +# include "connection.h" +#endif // CONNECTION_ENABLE + #ifdef VIA_ENABLE bool via_eeprom_is_valid(void); void via_eeprom_set_valid(bool valid); @@ -127,6 +131,11 @@ void eeconfig_init_quantum(void) { haptic_reset(); #endif // HAPTIC_ENABLE +#ifdef CONNECTION_ENABLE + extern void eeconfig_update_connection_default(void); + eeconfig_update_connection_default(); +#endif // CONNECTION_ENABLE + #if (EECONFIG_KB_DATA_SIZE) > 0 eeconfig_init_kb_datablock(); #endif // (EECONFIG_KB_DATA_SIZE) > 0 @@ -299,6 +308,15 @@ void eeconfig_update_haptic(const haptic_config_t *haptic_config) { } #endif // HAPTIC_ENABLE +#ifdef CONNECTION_ENABLE +void eeconfig_read_connection(connection_config_t *config) { + nvm_eeconfig_read_connection(config); +} +void eeconfig_update_connection(const connection_config_t *config) { + nvm_eeconfig_update_connection(config); +} +#endif // CONNECTION_ENABLE + bool eeconfig_read_handedness(void) { return nvm_eeconfig_read_handedness(); } |