add command system/fuse/mfg, board E32V2.2, check systemvolatage >2.6V

This commit is contained in:
MichaelDvP
2025-07-28 13:47:52 +02:00
parent c27134f185
commit 2aa691212c
6 changed files with 55 additions and 18 deletions

View File

@@ -180,8 +180,8 @@ StateUpdateResult WebSettings::update(JsonObject root, WebSettings & settings) {
if (ETH.begin(ETH_PHY_LAN8720, 0, 23, 18, 15, ETH_CLOCK_GPIO0_OUT)) {
#endif
if (analogReadMilliVolts(39) > 800) { // core voltage > 3V
settings.board_profile = "E32V3"; // Ethernet, PSRAM, internal sensors
if (analogReadMilliVolts(39) > 700) { // core voltage > 2.6V
settings.board_profile = "E32V2_2"; // Ethernet, PSRAM, internal sensors
} else {
settings.board_profile = "E32V2"; // Ethernet and PSRAM
}