Skip to content

Commit 29355e7

Browse files
committed
use full silicon version (aka chip revision) in startup output
1 parent c85f65e commit 29355e7

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

wled00/wled.cpp

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -569,7 +569,12 @@ void WLED::setup()
569569
#endif
570570

571571
USER_PRINT(F("CPU: ")); USER_PRINT(ESP.getChipModel());
572-
USER_PRINT(F(" rev.")); USER_PRINT(ESP.getChipRevision());
572+
#if ESP_IDF_VERSION >= ESP_IDF_VERSION_VAL(4, 4, 3) // use the full revision if we can
573+
esp_chip_info_t chip_info; esp_chip_info(&chip_info);
574+
USER_PRINTF(" v%u.%u", unsigned(chip_info.full_revision / 100), unsigned(chip_info.full_revision % 100));
575+
#else
576+
USER_PRINT(F(" rev.")); USER_PRINT(ESP.getChipRevision());
577+
#endif
573578
USER_PRINT(F(", ")); USER_PRINT(ESP.getChipCores()); USER_PRINT(F(" core(s)"));
574579
USER_PRINT(F(", ")); USER_PRINT(ESP.getCpuFreqMHz()); USER_PRINTLN(F("MHz."));
575580

0 commit comments

Comments
 (0)