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