Skip to content

Commit cea8fa2

Browse files
committed
nicla-system: Add function for backwards compatibility.
1 parent 48fb48e commit cea8fa2

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

Diff for: libraries/Nicla_System/src/Nicla_System.cpp

+5
Original file line numberDiff line numberDiff line change
@@ -386,6 +386,11 @@ void nicla::synchronizeFastChargeSettings()
386386
}
387387
}
388388

389+
void nicla::checkChgReg(){
390+
synchronizeFastChargeSettings();
391+
}
392+
393+
389394
I2CLed LEDR(red);
390395
I2CLed LEDG(green);
391396
I2CLed LEDB(blue);

Diff for: libraries/Nicla_System/src/Nicla_System.h

+3
Original file line numberDiff line numberDiff line change
@@ -215,6 +215,9 @@ class nicla {
215215
*/
216216
static void synchronizeFastChargeSettings();
217217

218+
[[deprecated("Use synchronizeFastChargeSettings() instead.")]]
219+
static void checkChgReg();
220+
218221
/**
219222
* A cached version of the fast charge settings for the PMIC.
220223
* This is used to reapply the settings if the register got wiped.

0 commit comments

Comments
 (0)