system info
This commit is contained in:
parent
8acbc79e88
commit
41c9262864
1 changed files with 3 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue