diff options
| author | Eric Tang <e_l_tang@outlook.com> | 2016-04-21 19:35:18 -0700 |
|---|---|---|
| committer | Eric Tang <e_l_tang@outlook.com> | 2016-04-21 20:07:03 -0700 |
| commit | 620ac4b260fa663d12b11a0b15ac50379523c125 (patch) | |
| tree | 97c07e85ab7acb939ff395e4ba12d950d805a8f6 /quantum/audio | |
| parent | 9828aba2a12f03fccbc1095bc8e4918ae58fa31b (diff) | |
| download | qmk_firmware-620ac4b260fa663d12b11a0b15ac50379523c125.tar.gz qmk_firmware-620ac4b260fa663d12b11a0b15ac50379523c125.zip | |
Update functions used to write to EEPROM
Diffstat (limited to 'quantum/audio')
| -rw-r--r-- | quantum/audio/audio.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/quantum/audio/audio.c b/quantum/audio/audio.c index 3225557ba..e85370d95 100644 --- a/quantum/audio/audio.c +++ b/quantum/audio/audio.c | |||
| @@ -85,17 +85,17 @@ uint16_t envelope_index = 0; | |||
| 85 | 85 | ||
| 86 | void audio_toggle(void) { | 86 | void audio_toggle(void) { |
| 87 | audio_config.enable ^= 1; | 87 | audio_config.enable ^= 1; |
| 88 | eeconfig_write_audio(audio_config.raw); | 88 | eeconfig_update_audio(audio_config.raw); |
| 89 | } | 89 | } |
| 90 | 90 | ||
| 91 | void audio_on(void) { | 91 | void audio_on(void) { |
| 92 | audio_config.enable = 1; | 92 | audio_config.enable = 1; |
| 93 | eeconfig_write_audio(audio_config.raw); | 93 | eeconfig_update_audio(audio_config.raw); |
| 94 | } | 94 | } |
| 95 | 95 | ||
| 96 | void audio_off(void) { | 96 | void audio_off(void) { |
| 97 | audio_config.enable = 0; | 97 | audio_config.enable = 0; |
| 98 | eeconfig_write_audio(audio_config.raw); | 98 | eeconfig_update_audio(audio_config.raw); |
| 99 | } | 99 | } |
| 100 | 100 | ||
| 101 | #ifdef VIBRATO_ENABLE | 101 | #ifdef VIBRATO_ENABLE |
