mirror of
https://github.com/richonguzman/LoRa_APRS_iGate.git
synced 2026-04-20 22:05:11 +00:00
better reading accuracy
This commit is contained in:
parent
fd24ce8598
commit
bb9a061266
1 changed files with 2 additions and 2 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue