diff --git a/src/Power.cpp b/src/Power.cpp index 14ef2e951..29c14ee73 100644 --- a/src/Power.cpp +++ b/src/Power.cpp @@ -54,7 +54,7 @@ class HasBatteryLevel /** * The raw voltage of the battery or NAN if unknown */ - virtual uint32_t getBattVoltage() { return 0; } + virtual uint16_t getBattVoltage() { return 0; } /** * return true if there is a battery installed in this unit @@ -123,7 +123,7 @@ class AnalogBatteryLevel : public HasBatteryLevel /** * The raw voltage of the batteryin millivolts or NAN if unknown */ - virtual uint32_t getBattVoltage() override + virtual uint16_t getBattVoltage() override { #ifndef ADC_MULTIPLIER diff --git a/variants/diy/dr-dev/variant.h b/variants/diy/dr-dev/variant.h index 113fe5e3f..b9c82a9c8 100644 --- a/variants/diy/dr-dev/variant.h +++ b/variants/diy/dr-dev/variant.h @@ -3,7 +3,7 @@ #define I2C_SDA 4 #define I2C_SCL 5 #define BATTERY_PIN 34 -#define ADC1_GPIO34_CHANNEL +#define ADC_CHANNEL ADC1_GPIO34_CHANNEL // GPS #undef GPS_RX_PIN