Skip to content

Commit 976bda6

Browse files
authored
fix(report): Print correct chip revision (#10277)
It was printed wrongly before. Actual revision is the value divided by 100 in float.
1 parent 41cdbd9 commit 976bda6

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

cores/esp32/chip-debug-report.cpp

+1-6
Original file line numberDiff line numberDiff line change
@@ -87,12 +87,7 @@ static void printChipInfo(void) {
8787
default: chip_report_printf("Unknown %d\n", info.model); break;
8888
}
8989
printPkgVersion();
90-
chip_report_printf(" Revision : ");
91-
if (info.revision > 0xFF) {
92-
chip_report_printf("%d.%d\n", info.revision >> 8, info.revision & 0xFF);
93-
} else {
94-
chip_report_printf("%d\n", info.revision);
95-
}
90+
chip_report_printf(" Revision : %.2f\n", (float)(info.revision) / 100.0);
9691
chip_report_printf(" Cores : %d\n", info.cores);
9792
rtc_cpu_freq_config_t conf;
9893
rtc_clk_cpu_freq_get_config(&conf);

0 commit comments

Comments
 (0)