better reading accuracy

This commit is contained in:
richonguzman
2025-08-07 20:15:23 -04:00
parent fd24ce8598
commit bb9a061266

View File

@@ -128,7 +128,7 @@ namespace BATTERY_Utils {
#endif
#endif
for (int i = 0; i < 100; i++) {
for (int i = 0; i < 20; i++) {
#if defined(ESP32_DIY_LoRa) || defined(ESP32_DIY_LoRa_915) || defined(ESP32_DIY_1W_LoRa) || defined(ESP32_DIY_1W_LoRa_915)
sample = 0;
#else
@@ -147,7 +147,7 @@ namespace BATTERY_Utils {
#endif
#endif
sampleSum += sample;
delayMicroseconds(50);
delay(3);
}
#ifdef ADC_CTRL