diff --git a/src/power_management.cpp b/src/power_management.cpp index 3a998f7..cddcea5 100644 --- a/src/power_management.cpp +++ b/src/power_management.cpp @@ -53,7 +53,7 @@ void PowerManagement::decativateOLED() axp.setPowerOutPut(AXP192_DCDC1, AXP202_OFF); } - +// cppcheck-suppress unusedFunction void PowerManagement::activateMeasurement() { axp.adc1Enable(AXP202_BATT_CUR_ADC1 | @@ -61,6 +61,7 @@ void PowerManagement::activateMeasurement() true); } +// cppcheck-suppress unusedFunction void PowerManagement::deactivateMeasurement() { axp.adc1Enable(AXP202_BATT_CUR_ADC1 | @@ -68,11 +69,13 @@ void PowerManagement::deactivateMeasurement() false); } +// cppcheck-suppress unusedFunction double PowerManagement::getBatteryVoltage() { return axp.getBattVoltage() / 1000.0; } +// cppcheck-suppress unusedFunction double PowerManagement::getBatteryChargeDischargeCurrent() { if(axp.isChargeing())