|
|
|
@ -270,7 +270,7 @@ void setup() |
|
|
|
|
#ifdef DEBUG |
|
|
|
|
char version_string[LCD_cols + 1]; |
|
|
|
|
generate_version_string(version_string, sizeof(version_string)); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Serial.println(F("MicroDexed based on https://github.com/asb2m10/dexed")); |
|
|
|
|
Serial.println(F("(c)2018-2020 H. Wirtz <wirtz@parasitstudio.de>")); |
|
|
|
|
Serial.println(F("https://codeberg.org/dcoredump/MicroDexed")); |
|
|
|
@ -672,10 +672,10 @@ void loop() |
|
|
|
|
if (cpu_mem_millis >= SHOW_CPU_LOAD_MSEC) |
|
|
|
|
{ |
|
|
|
|
if (master_peak_r.available()) |
|
|
|
|
if (master_peak_r.read() > 0.99) |
|
|
|
|
if (master_peak_r.read() == 1.0) |
|
|
|
|
peak_r++; |
|
|
|
|
if (master_peak_l.available()) |
|
|
|
|
if (master_peak_l.read() > 0.99) |
|
|
|
|
if (master_peak_l.read() == 1.0) |
|
|
|
|
peak_l++; |
|
|
|
|
if (microdexed_peak.available()) |
|
|
|
|
{ |
|
|
|
@ -1592,12 +1592,12 @@ void generate_version_string(char* buffer, uint8_t len) |
|
|
|
|
itoa (MAX_NOTES, tmp, 10); |
|
|
|
|
strncat(buffer, tmp, 2); |
|
|
|
|
#endif |
|
|
|
|
buffer[len] = '\0'; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
/******************************************************************************
|
|
|
|
|
DEBUG HELPER |
|
|
|
|
******************************************************************************/ |
|
|
|
|
|
|
|
|
|
#if defined (DEBUG) && defined (SHOW_CPU_LOAD_MSEC) |
|
|
|
|
void show_cpu_and_mem_usage(void) |
|
|
|
|
{ |
|
|
|
|