We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c85f65e commit 29355e7Copy full SHA for 29355e7
1 file changed
wled00/wled.cpp
@@ -569,7 +569,12 @@ void WLED::setup()
569
#endif
570
571
USER_PRINT(F("CPU: ")); USER_PRINT(ESP.getChipModel());
572
- USER_PRINT(F(" rev.")); USER_PRINT(ESP.getChipRevision());
+ #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
578
USER_PRINT(F(", ")); USER_PRINT(ESP.getChipCores()); USER_PRINT(F(" core(s)"));
579
USER_PRINT(F(", ")); USER_PRINT(ESP.getCpuFreqMHz()); USER_PRINTLN(F("MHz."));
580
0 commit comments