summaryrefslogtreecommitdiff
path: root/quantum/audio
diff options
context:
space:
mode:
authormilestogo <milestogo@users.noreply.github.com>2017-03-08 15:51:30 -0800
committermilestogo <milestogo@users.noreply.github.com>2017-03-08 15:51:30 -0800
commitfeb858c5a9afff06ff54ec401359f8bfd5abdd73 (patch)
treecf61bfad47984bb4987540404f0ec349defbff1a /quantum/audio
parentb5bfb5104b63766ab9a54509302a3f4b0b1d7b16 (diff)
parentffb04bad660ba7c487e4b923e4391b6c7dd5eddd (diff)
downloadqmk_firmware-feb858c5a9afff06ff54ec401359f8bfd5abdd73.tar.gz
qmk_firmware-feb858c5a9afff06ff54ec401359f8bfd5abdd73.zip
Merge branch 'master' into sculpt2
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 8326e91eaa..c2edb75f01 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) {