mirror of
https://github.com/emsesp/EMS-ESP32.git
synced 2025-12-07 00:09:51 +03:00
add gateway E32V3, autodetect by gpio39 core voltage
This commit is contained in:
@@ -179,7 +179,12 @@ StateUpdateResult WebSettings::update(JsonObject root, WebSettings & settings) {
|
||||
#else
|
||||
if (ETH.begin(ETH_PHY_LAN8720, 0, 23, 18, 15, ETH_CLOCK_GPIO0_OUT)) {
|
||||
#endif
|
||||
settings.board_profile = "E32V2"; // Ethernet and PSRAM
|
||||
|
||||
if (analogReadMilliVolts(39) > 800) { // core voltage > 3V
|
||||
settings.board_profile = "E32V3"; // Ethernet, PSRAM, internal sensors
|
||||
} else {
|
||||
settings.board_profile = "E32V2"; // Ethernet and PSRAM
|
||||
}
|
||||
} else {
|
||||
settings.board_profile = "S32"; // ESP32 standard WiFi with PSRAM
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user