From a878f5f8f59d8e4c006c73982607e1d4689f79be Mon Sep 17 00:00:00 2001 From: Holger Wirtz Date: Thu, 19 Aug 2021 09:12:09 +0200 Subject: [PATCH] Fixing some DEBUG messages. --- MicroDexed.ino | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/MicroDexed.ino b/MicroDexed.ino index c66b1cb..e6b678f 100644 --- a/MicroDexed.ino +++ b/MicroDexed.ino @@ -374,6 +374,8 @@ extern char seq_chord_names[7][4]; ***********************************************************************/ void setup() { + Serial.begin(SERIAL_SPEED); + #ifdef DISPLAY_LCD_SPI pinMode(SDCARD_CS_PIN, OUTPUT); pinMode(U8X8_CS_PIN, OUTPUT); @@ -389,10 +391,10 @@ void setup() #endif #ifdef DEBUG - setup_debug_message(); - Serial.begin(SERIAL_SPEED); Serial.println(CrashReport); + setup_debug_message(); + generate_version_string(version_string, sizeof(version_string)); Serial.println(F("MicroDexed based on https://github.com/asb2m10/dexed")); @@ -2212,8 +2214,10 @@ void set_fx_params(void) sgtl5000.setEQGain(5, mapfloat(configuration.fx.eq_5, EQ_5_MIN, EQ_5_MAX, -9.9, 9.9)); sgtl5000.setEQGain(6, mapfloat(configuration.fx.eq_6, EQ_6_MIN, EQ_6_MAX, -9.9, 9.9)); sgtl5000.setEQGain(7, mapfloat(configuration.fx.eq_7, EQ_7_MIN, EQ_7_MAX, -9.9, 9.9)); +#ifdef DEBUG for (uint8_t band = 1; band <= 7; band++) sgtl5000.show_params(band); +#endif #endif init_MIDI_send_CC();