Skip to content

Commit 97de72c

Browse files
authored
Merge pull request #28 from williamd1k0/fix-bat-adc-and-cstdint
Fix missing cstdint include in RTC8563 class and battery ADC channel enum conversion error
2 parents a83fca7 + 0bebeb6 commit 97de72c

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-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

src/utility/RTC8563_Class.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
typedef void timezone;
1414
#endif
1515
#include <time.h>
16+
#include <cstdint>
1617

1718
#define BM8563_I2C_ADDR 0x51
1819

0 commit comments

Comments
 (0)