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 57b951a

Browse filesBrowse files
authored
missing ESP32-D0WDR2-V3 added to getChipModel() (espressif#7958)
* missing ESP32-D0WDR2-V3 added to getChipModel() * added ESP32-D0WD-V3 variants to getChipModel() * renamed ESP32-D2WDQ5 to ESP32-D2WD
1 parent c6b850b commit 57b951a
Copy full SHA for 57b951a

File tree

Expand file treeCollapse file tree

1 file changed

+11
-3
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+11
-3
lines changed

‎cores/esp32/Esp.cpp

Copy file name to clipboardExpand all lines: cores/esp32/Esp.cpp
+11-3Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -269,17 +269,25 @@ const char * EspClass::getChipModel(void)
269269
uint32_t pkg_ver = chip_ver & 0x7;
270270
switch (pkg_ver) {
271271
case EFUSE_RD_CHIP_VER_PKG_ESP32D0WDQ6 :
272-
return "ESP32-D0WDQ6";
272+
if (getChipRevision() == 3)
273+
return "ESP32-D0WDQ6-V3";
274+
else
275+
return "ESP32-D0WDQ6";
273276
case EFUSE_RD_CHIP_VER_PKG_ESP32D0WDQ5 :
274-
return "ESP32-D0WDQ5";
277+
if (getChipRevision() == 3)
278+
return "ESP32-D0WD-V3";
279+
else
280+
return "ESP32-D0WD";
275281
case EFUSE_RD_CHIP_VER_PKG_ESP32D2WDQ5 :
276-
return "ESP32-D2WDQ5";
282+
return "ESP32-D2WD";
277283
case EFUSE_RD_CHIP_VER_PKG_ESP32PICOD2 :
278284
return "ESP32-PICO-D2";
279285
case EFUSE_RD_CHIP_VER_PKG_ESP32PICOD4 :
280286
return "ESP32-PICO-D4";
281287
case EFUSE_RD_CHIP_VER_PKG_ESP32PICOV302 :
282288
return "ESP32-PICO-V3-02";
289+
case EFUSE_RD_CHIP_VER_PKG_ESP32D0WDR2V3 :
290+
return "ESP32-D0WDR2-V3";
283291
default:
284292
return "Unknown";
285293
}

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.