Fixed modem sleep on S2 and fixed default wifi power

This commit is contained in:
Gunnar Skjold
2022-08-12 09:02:04 +02:00
parent 4a7ef87269
commit 508c14a671
2 changed files with 8 additions and 0 deletions

View File

@@ -63,8 +63,10 @@ void AmsConfiguration::clearWifi(WiFiConfig& config) {
uint16_t chipId;
#if defined(ESP32)
chipId = ESP.getEfuseMac();
config.power = 195;
#else
chipId = ESP.getChipId();
config.power = 205;
#endif
strcpy(config.hostname, (String("ams-") + String(chipId, HEX)).c_str());
config.mdns = true;