Unverified Commit 0539ebf3 authored by Me No Dev's avatar Me No Dev Committed by GitHub

fix(chip): Return correct ESP32 chip model (#10243)

parent dbdb4028
...@@ -262,13 +262,13 @@ const char *EspClass::getChipModel(void) { ...@@ -262,13 +262,13 @@ const char *EspClass::getChipModel(void) {
uint32_t pkg_ver = chip_ver & 0x7; uint32_t pkg_ver = chip_ver & 0x7;
switch (pkg_ver) { switch (pkg_ver) {
case EFUSE_RD_CHIP_VER_PKG_ESP32D0WDQ6: case EFUSE_RD_CHIP_VER_PKG_ESP32D0WDQ6:
if (getChipRevision() == 3) { if ((getChipRevision() / 100) == 3) {
return "ESP32-D0WDQ6-V3"; return "ESP32-D0WDQ6-V3";
} else { } else {
return "ESP32-D0WDQ6"; return "ESP32-D0WDQ6";
} }
case EFUSE_RD_CHIP_VER_PKG_ESP32D0WDQ5: case EFUSE_RD_CHIP_VER_PKG_ESP32D0WDQ5:
if (getChipRevision() == 3) { if ((getChipRevision() / 100) == 3) {
return "ESP32-D0WD-V3"; return "ESP32-D0WD-V3";
} else { } else {
return "ESP32-D0WD"; return "ESP32-D0WD";
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment