Tryfix datatype errors

This commit is contained in:
code8buster 2023-05-16 02:43:00 -04:00 committed by Thomas Göttgens
parent 3219ad33ef
commit 9878ff3836
2 changed files with 3 additions and 3 deletions

View File

@ -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

View File

@ -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