From 1565bd2ca9a78f21a7f6e2551fcd4c558c9c6038 Mon Sep 17 00:00:00 2001 From: Xylopyrographer Date: Fri, 26 Jul 2024 16:15:46 -0600 Subject: [PATCH] feat: Print chip features bitfield Prints the value of the chip features bitfield to printChipInfo() to facilitate debugging. --- cores/esp32/chip-debug-report.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/cores/esp32/chip-debug-report.cpp b/cores/esp32/chip-debug-report.cpp index c5b9866e3cc..5586d481acd 100644 --- a/cores/esp32/chip-debug-report.cpp +++ b/cores/esp32/chip-debug-report.cpp @@ -98,6 +98,7 @@ static void printChipInfo(void) { rtc_clk_cpu_freq_get_config(&conf); chip_report_printf(" CPU Frequency : %lu MHz\n", conf.freq_mhz); chip_report_printf(" XTAL Frequency : %d MHz\n", rtc_clk_xtal_freq_get()); + chip_report_printf(" Features Bitfield : %#010x\n", info.features); chip_report_printf(" Embedded Flash : %s\n", (info.features & CHIP_FEATURE_EMB_FLASH) ? "Yes" : "No"); chip_report_printf(" Embedded PSRAM : %s\n", (info.features & CHIP_FEATURE_EMB_PSRAM) ? "Yes" : "No"); chip_report_printf(" 2.4GHz WiFi : %s\n", (info.features & CHIP_FEATURE_WIFI_BGN) ? "Yes" : "No");