From 46a942428d792e40f1d95e8609bb31ccbb7de8a3 Mon Sep 17 00:00:00 2001 From: Holger Wirtz Date: Thu, 19 Aug 2021 14:37:31 +0200 Subject: [PATCH] Small fixes. --- MicroDexed.ino | 1 - control_sgtl5000plus.cpp | 21 ++++++++++++--------- 2 files changed, 12 insertions(+), 10 deletions(-) diff --git a/MicroDexed.ino b/MicroDexed.ino index 70abbd6..17999e2 100644 --- a/MicroDexed.ino +++ b/MicroDexed.ino @@ -301,7 +301,6 @@ void create_audio_drum_chain(uint8_t instance_id) } #endif -StaticJsonDocument data_json; uint8_t sd_card = 0; Sd2Card card; SdVolume volume; diff --git a/control_sgtl5000plus.cpp b/control_sgtl5000plus.cpp index 827141c..30ad194 100644 --- a/control_sgtl5000plus.cpp +++ b/control_sgtl5000plus.cpp @@ -115,24 +115,27 @@ void AudioControlSGTL5000Plus::setEQFc(uint8_t band, float frq) } } -// Calculate Q: http://www.sengpielaudio.com/calculator-bandwidth.htm -/* void AudioControlSGTL5000Plus::setEQQ(uint8_t band, float q) - { +void AudioControlSGTL5000Plus::setEQQ(uint8_t band, float q) +{ if (Q) { band = constrain(band, 1, num_bands); Q[band - 1] = q; } - }*/ +} -void setEQBandwidth(uint8_t band, float bw); -{ +/* + // Calculate Q: http://www.sengpielaudio.com/calculator-bandwidth.htm + void setEQBandwidth(uint8_t band, float bw) + { if (Q && Fc) { - band = constrain(band, 1, num_bands); - //Q[band - 1] = ; + band = constrain(band, 1, num_bands); + //Q[band - 1] = ; } -} + } +*/ + void AudioControlSGTL5000Plus::setEQGain(uint8_t band, float gain) { if (peakGainDB)