More adjustments for auto update

This commit is contained in:
Gunnar Skjold
2024-12-07 11:32:45 +01:00
parent 18af98511a
commit 9da2d0760e
6 changed files with 217 additions and 79 deletions

View File

@@ -412,7 +412,7 @@ float HwTools::getVcc() {
#else
uint32_t x = 0;
for (int i = 0; i < 10; i++) {
x += analogRead(config->vccPin);
x += analogRead(vccPin);
}
volts = (x * 3.3) / 10.0 / analogRange;
#endif