diff options
author | Joel Challis <git@zvecr.com> | 2023-03-23 00:37:13 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-03-23 00:37:13 +0000 |
commit | 6540b31d71a13a1b612cc31bad4c081f1a178630 (patch) | |
tree | a4c1dfc9aa07e8a65d0545c1320c65206eb0d8fc /quantum/audio | |
parent | 9c3c159286d20b05c3526ddb96661b10f706f222 (diff) |
Add some helpers to tidy up XAP (#20235)
Diffstat (limited to 'quantum/audio')
-rw-r--r-- | quantum/audio/audio.c | 4 | ||||
-rw-r--r-- | quantum/audio/audio.h | 5 |
2 files changed, 9 insertions, 0 deletions
diff --git a/quantum/audio/audio.c b/quantum/audio/audio.c index ca78a483ad..3f6dc20232 100644 --- a/quantum/audio/audio.c +++ b/quantum/audio/audio.c @@ -112,6 +112,10 @@ static bool audio_initialized = false; static bool audio_driver_stopped = true; audio_config_t audio_config; +void eeconfig_update_audio_current(void) { + eeconfig_update_audio(audio_config.raw); +} + void audio_init(void) { if (audio_initialized) { return; diff --git a/quantum/audio/audio.h b/quantum/audio/audio.h index fe23cf3ed1..6feecb5e65 100644 --- a/quantum/audio/audio.h +++ b/quantum/audio/audio.h @@ -64,6 +64,11 @@ typedef struct { // public interface /** + * @brief Save the current choices to the eeprom + */ +void eeconfig_update_audio_current(void); + +/** * @brief one-time initialization called by quantum/quantum.c * @details usually done lazy, when some tones are to be played * |