Skip to content

Commit 0539ebf

Browse files
authored
fix(chip): Return correct ESP32 chip model (espressif#10243)
1 parent dbdb402 commit 0539ebf

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

cores/esp32/Esp.cpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -262,13 +262,13 @@ const char *EspClass::getChipModel(void) {
262262
uint32_t pkg_ver = chip_ver & 0x7;
263263
switch (pkg_ver) {
264264
case EFUSE_RD_CHIP_VER_PKG_ESP32D0WDQ6:
265-
if (getChipRevision() == 3) {
265+
if ((getChipRevision() / 100) == 3) {
266266
return "ESP32-D0WDQ6-V3";
267267
} else {
268268
return "ESP32-D0WDQ6";
269269
}
270270
case EFUSE_RD_CHIP_VER_PKG_ESP32D0WDQ5:
271-
if (getChipRevision() == 3) {
271+
if ((getChipRevision() / 100) == 3) {
272272
return "ESP32-D0WD-V3";
273273
} else {
274274
return "ESP32-D0WD";

0 commit comments

Comments
 (0)