From 5d084b48280a768d6e45d021972feb803c92b89d Mon Sep 17 00:00:00 2001 From: me-no-dev Date: Mon, 2 Sep 2024 13:19:38 +0300 Subject: [PATCH] fix(report): Print correct chip revision It was printed wrongly before. Actual revision is the value divided by 100 in float. --- cores/esp32/chip-debug-report.cpp | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/cores/esp32/chip-debug-report.cpp b/cores/esp32/chip-debug-report.cpp index 5586d481acd..239ae3e97c9 100644 --- a/cores/esp32/chip-debug-report.cpp +++ b/cores/esp32/chip-debug-report.cpp @@ -87,12 +87,7 @@ static void printChipInfo(void) { default: chip_report_printf("Unknown %d\n", info.model); break; } printPkgVersion(); - chip_report_printf(" Revision : "); - if (info.revision > 0xFF) { - chip_report_printf("%d.%d\n", info.revision >> 8, info.revision & 0xFF); - } else { - chip_report_printf("%d\n", info.revision); - } + chip_report_printf(" Revision : %.2f\n", (float)(info.revision) / 100.0); chip_report_printf(" Cores : %d\n", info.cores); rtc_cpu_freq_config_t conf; rtc_clk_cpu_freq_get_config(&conf);