system info

This commit is contained in:
Folkert van Heusden 2024-06-12 20:22:56 +02:00
parent 8acbc79e88
commit 41c9262864
Signed by untrusted user who does not match committer: folkert
GPG key ID: 30190E8C1F28D8AE

View file

@ -16,6 +16,7 @@
#include <sys/types.h>
#endif
#if defined(ESP32)
#include "esp_clk.h"
#include "esp_heap_caps.h"
#endif
@ -269,6 +270,8 @@ void setup() {
cs->println(format("GIT hash: %s", version_str));
cs->println("Build on: " __DATE__ " " __TIME__);
cs->println(format("# cores: %d, CPU frequency: %d", SOC_CPU_CORES_NUM, esp_clk_cpu_freq()));
#if defined(ESP32)
heap_caps_register_failed_alloc_callback(heap_caps_alloc_failed_hook);
#endif