mirror of
https://github.com/richonguzman/LoRa_APRS_iGate.git
synced 2026-04-06 15:05:57 +00:00
just small code cleaning
This commit is contained in:
parent
d004efb193
commit
df3b15ff35
5 changed files with 7 additions and 8 deletions
|
|
@ -30,7 +30,7 @@ namespace BATTERY_Utils {
|
|||
float checkBattery() {
|
||||
int sample;
|
||||
int sampleSum = 0;
|
||||
for (int i=0; i<100; i++) {
|
||||
for (int i = 0; i < 100; i++) {
|
||||
#if defined(TTGO_T_LORA32_V2_1) || defined(HELTEC_V2) || defined(HELTEC_WSL)
|
||||
sample = analogRead(batteryPin);
|
||||
#endif
|
||||
|
|
@ -51,7 +51,7 @@ namespace BATTERY_Utils {
|
|||
float checkExternalVoltage() {
|
||||
int sample;
|
||||
int sampleSum = 0;
|
||||
for (int i=0; i<100; i++) {
|
||||
for (int i = 0; i < 100; i++) {
|
||||
sample = analogRead(Config.externalVoltagePin);
|
||||
sampleSum += sample;
|
||||
delayMicroseconds(50);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue