Added CPU temperature information (only for Teensy-4) to status display.

pull/68/head
Holger Wirtz 3 years ago
parent 62ba943135
commit 7ad3d2f528
  1. 8
      MicroDexed.ino

@ -379,7 +379,7 @@ void setup()
setup_debug_message(); setup_debug_message();
Serial.begin(SERIAL_SPEED); Serial.begin(SERIAL_SPEED);
Serial.println(CrashReport); Serial.println(CrashReport);
generate_version_string(version_string, sizeof(version_string)); generate_version_string(version_string, sizeof(version_string));
Serial.println(F("MicroDexed based on https://github.com/asb2m10/dexed")); Serial.println(F("MicroDexed based on https://github.com/asb2m10/dexed"));
@ -2514,7 +2514,13 @@ void show_cpu_and_mem_usage(void)
Serial.print(AudioProcessorUsageMax(), 2); Serial.print(AudioProcessorUsageMax(), 2);
Serial.print(F("%|CPUMAXCNT:")); Serial.print(F("%|CPUMAXCNT:"));
Serial.print(cpumax, DEC); Serial.print(cpumax, DEC);
#ifdef TEENSY4
Serial.print(F("|CPUTEMP:"));
Serial.print(tempmonGetTemp(), 2);
Serial.print(F("C|MEM:"));
#else
Serial.print(F("|MEM:")); Serial.print(F("|MEM:"));
#endif
Serial.print(AudioMemoryUsage(), DEC); Serial.print(AudioMemoryUsage(), DEC);
Serial.print(F("|MEMMAX:")); Serial.print(F("|MEMMAX:"));
Serial.print(AudioMemoryUsageMax(), DEC); Serial.print(AudioMemoryUsageMax(), DEC);

Loading…
Cancel
Save