From b9c3731740d9b05d39c33b2d3efef1f4117bd9a7 Mon Sep 17 00:00:00 2001 From: Sebastian Romero Date: Thu, 29 Feb 2024 15:59:28 +0100 Subject: [PATCH] Rename getter removing return type --- src/PF1550.cpp | 2 +- src/PF1550.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/PF1550.cpp b/src/PF1550.cpp index 14e7568..fe8800c 100644 --- a/src/PF1550.cpp +++ b/src/PF1550.cpp @@ -178,7 +178,7 @@ void PF1550::configCharger(IFastCharge const i_fast_charge, _control.setInputCurrentLimit (i_input_current_limit); } -PF1550_Control * PF1550::getControlPointer(){ +PF1550_Control* PF1550::getControl(){ return &this -> _control; } diff --git a/src/PF1550.h b/src/PF1550.h index 70c53d3..2d41571 100644 --- a/src/PF1550.h +++ b/src/PF1550.h @@ -95,7 +95,7 @@ class PF1550 /* Actual PMIC event ISR handler with access to member variables */ inline void onPMICEvent() { _control.onPMICEvent(); } - PF1550_Control * getControlPointer(); + PF1550_Control* getControl(); private: