Skip to content

Commit 0bebeb6

Browse files
committed
Fix battery ADC channel enum conversion error
1 parent 0ec44f3 commit 0bebeb6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/utility/Power_Class.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
#define POWER_LED_PIN 2
1515

1616
#define BAT_ADC_PIN 38
17-
#define BAT_ADC_CHANNEL ADC1_GPIO38_CHANNEL
17+
#define BAT_ADC_CHANNEL ADC1_CHANNEL_2
1818

1919
#define BASE_VOLATAGE 3600
2020
#define SCALE 0.661
@@ -33,4 +33,4 @@ class Power_Class {
3333
void timerSleep(const rtc_date_t& date, const rtc_time_t& time);
3434
};
3535

36-
#endif
36+
#endif

0 commit comments

Comments
 (0)