Updated voltage factor for esp32

This commit is contained in:
Magnus Persson 2022-04-08 20:07:23 +02:00
parent 5b99304d7f
commit acb53bf611
2 changed files with 1 additions and 7 deletions

View File

@ -51,12 +51,6 @@ Config::Config() {
Log.verbose(F("CFG : Created config for %s (%s)." CR), _id.c_str(),
_mDNS.c_str());
#endif
#if defined(ESP8266)
setVoltageFactor(1.59); // Conversion factor for battery on ESP8266
#else // defined (ESP32)
setVoltageFactor(1.25); // Conversion factor for battery on ESP32
#endif
}
//

View File

@ -96,7 +96,7 @@ class Config {
String _mDNS = "";
String _otaURL = "";
char _tempFormat = 'C';
float _voltageFactor = 0;
float _voltageFactor = 1.59;
float _tempSensorAdjC = 0;
int _sleepInterval = 900;
bool _gyroTemp = false;