From b00e9043557fc755be904e7366c215124de31251 Mon Sep 17 00:00:00 2001 From: Holger Wirtz Date: Fri, 5 Oct 2018 14:18:41 +0200 Subject: [PATCH] Showing bank on LCD as 8 chars instead of 10. Small internal renaming. --- MicroDexed.ino | 4 +--- UI.cpp | 8 ++++---- config.h | 2 +- 3 files changed, 6 insertions(+), 8 deletions(-) diff --git a/MicroDexed.ino b/MicroDexed.ino index fdecc22..f2c8dfe 100644 --- a/MicroDexed.ino +++ b/MicroDexed.ino @@ -788,7 +788,7 @@ void eeprom_write(uint8_t status) void eeprom_update(void) { - autostore_value = AUTOSTORE_DIST_MS; + autostore_value = AUTOSTORE_FAST_MS; if (eeprom_update_status & EEPROM_UPDATE_BANK) { @@ -857,8 +857,6 @@ void eeprom_update(void) #if defined (DEBUG) && defined (SHOW_CPU_LOAD_MSEC) void show_cpu_and_mem_usage(void) { - Serial.print(F("EEPROM state: ")); - Serial.print(eeprom_update_status, DEC); Serial.print(F(" CPU: ")); Serial.print(AudioProcessorUsage(), 2); Serial.print(F("% CPU MAX: ")); diff --git a/UI.cpp b/UI.cpp index 6a5dc25..3baa210 100644 --- a/UI.cpp +++ b/UI.cpp @@ -223,14 +223,14 @@ void ui_show_main(void) if (ui_main_state == UI_MAIN_BANK || ui_main_state == UI_MAIN_BANK_SELECTED) { lcd.show(0, 2, 1, "["); - lcd.show(0, 3, 10, bank_name); - lcd.show(0, 14, 1, "]"); + lcd.show(0, 3, 8, bank_name); + lcd.show(0, 11, 1, "]"); } else { lcd.show(0, 2, 1, " "); - lcd.show(0, 3, 10, bank_name); - lcd.show(0, 14, 1, " "); + lcd.show(0, 3, 8, bank_name); + lcd.show(0, 11, 1, " "); } lcd.show(1, 0, 2, voice + 1); diff --git a/config.h b/config.h index e6cdf88..6db391f 100644 --- a/config.h +++ b/config.h @@ -97,7 +97,7 @@ #define LCD_LINES 2 #define UI_AUTO_BACK_MS 3000 #define AUTOSTORE_MS 5000 -#define AUTOSTORE_DIST_MS 50 +#define AUTOSTORE_FAST_MS 50 // Encoder with button #define ENC_VOL_STEPS 43