Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 0539ebf

Browse filesBrowse files
authored
fix(chip): Return correct ESP32 chip model (#10243)
1 parent dbdb402 commit 0539ebf
Copy full SHA for 0539ebf

File tree

Expand file treeCollapse file tree

1 file changed

+2
-2
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+2
-2
lines changed

‎cores/esp32/Esp.cpp

Copy file name to clipboardExpand all lines: cores/esp32/Esp.cpp
+2-2Lines changed: 2 additions & 2 deletions
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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.