From 7ad3d2f528262ca3e25b46344156e196ea35023b Mon Sep 17 00:00:00 2001 From: Holger Wirtz Date: Wed, 11 Aug 2021 14:43:44 +0200 Subject: [PATCH] Added CPU temperature information (only for Teensy-4) to status display. --- MicroDexed.ino | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/MicroDexed.ino b/MicroDexed.ino index facfc32..99ede4b 100644 --- a/MicroDexed.ino +++ b/MicroDexed.ino @@ -379,7 +379,7 @@ void setup() setup_debug_message(); Serial.begin(SERIAL_SPEED); Serial.println(CrashReport); - + generate_version_string(version_string, sizeof(version_string)); 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(F("%|CPUMAXCNT:")); Serial.print(cpumax, DEC); +#ifdef TEENSY4 + Serial.print(F("|CPUTEMP:")); + Serial.print(tempmonGetTemp(), 2); + Serial.print(F("C|MEM:")); +#else Serial.print(F("|MEM:")); +#endif Serial.print(AudioMemoryUsage(), DEC); Serial.print(F("|MEMMAX:")); Serial.print(AudioMemoryUsageMax(), DEC);