summaryrefslogtreecommitdiffstats
path: root/quantum/audio
diff options
context:
space:
mode:
authormilestogo <milestogo@users.noreply.github.com>2017-03-09 00:50:46 +0100
committermilestogo <milestogo@users.noreply.github.com>2017-03-09 00:50:46 +0100
commitffb04bad660ba7c487e4b923e4391b6c7dd5eddd (patch)
treede8446b9b4d62611b7ff7c99394cbdb73ffe558e /quantum/audio
parent1622d7147b1647a7e0da47386c919a5a95cd1a29 (diff)
parentbfa7e6ce04624f624cb8925cd5b5490801ced738 (diff)
downloadqmk_firmware-ffb04bad660ba7c487e4b923e4391b6c7dd5eddd.tar.gz
qmk_firmware-ffb04bad660ba7c487e4b923e4391b6c7dd5eddd.tar.xz
Merge branch 'master' of https://github.com/jackhumbert/qmk_firmware
Diffstat (limited to 'quantum/audio')
-rw-r--r--quantum/audio/voices.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/quantum/audio/voices.c b/quantum/audio/voices.c
index 8326e91ea..c2edb75f0 100644
--- a/quantum/audio/voices.c
+++ b/quantum/audio/voices.c
@@ -24,6 +24,7 @@ void voice_deiterate() {
float voice_envelope(float frequency) {
// envelope_index ranges from 0 to 0xFFFF, which is preserved at 880.0 Hz
+ __attribute__ ((unused))
uint16_t compensated_index = (uint16_t)((float)envelope_index * (880.0 / frequency));
switch (voice) {