kopia lustrzana https://github.com/lora-aprs/LoRa_APRS_iGate
fixing cppcheck in power_management
rodzic
32aee92eeb
commit
493fd35562
|
|
@ -1,11 +1,9 @@
|
||||||
|
|
||||||
#include "power_management.h"
|
#include "power_management.h"
|
||||||
|
|
||||||
// cppcheck-suppress uninitMemberVar
|
|
||||||
PowerManagement::PowerManagement() {
|
PowerManagement::PowerManagement() {
|
||||||
}
|
}
|
||||||
|
|
||||||
// cppcheck-suppress unusedFunction
|
|
||||||
bool PowerManagement::begin(TwoWire &port) {
|
bool PowerManagement::begin(TwoWire &port) {
|
||||||
bool result = axp.begin(port, AXP192_SLAVE_ADDRESS);
|
bool result = axp.begin(port, AXP192_SLAVE_ADDRESS);
|
||||||
if (!result) {
|
if (!result) {
|
||||||
|
|
@ -14,7 +12,6 @@ bool PowerManagement::begin(TwoWire &port) {
|
||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
|
|
||||||
// cppcheck-suppress unusedFunction
|
|
||||||
void PowerManagement::activateLoRa() {
|
void PowerManagement::activateLoRa() {
|
||||||
axp.setPowerOutPut(AXP192_LDO2, AXP202_ON);
|
axp.setPowerOutPut(AXP192_LDO2, AXP202_ON);
|
||||||
}
|
}
|
||||||
|
|
@ -29,12 +26,10 @@ void PowerManagement::activateGPS() {
|
||||||
axp.setPowerOutPut(AXP192_LDO3, AXP202_ON);
|
axp.setPowerOutPut(AXP192_LDO3, AXP202_ON);
|
||||||
}
|
}
|
||||||
|
|
||||||
// cppcheck-suppress unusedFunction
|
|
||||||
void PowerManagement::deactivateGPS() {
|
void PowerManagement::deactivateGPS() {
|
||||||
axp.setPowerOutPut(AXP192_LDO3, AXP202_OFF);
|
axp.setPowerOutPut(AXP192_LDO3, AXP202_OFF);
|
||||||
}
|
}
|
||||||
|
|
||||||
// cppcheck-suppress unusedFunction
|
|
||||||
void PowerManagement::activateOLED() {
|
void PowerManagement::activateOLED() {
|
||||||
axp.setPowerOutPut(AXP192_DCDC1, AXP202_ON);
|
axp.setPowerOutPut(AXP192_DCDC1, AXP202_ON);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Ładowanie…
Reference in New Issue