Skip to content

Commit b2311dc

Browse files
committed
nicla-system: Rename charging function.
1 parent 702aae9 commit b2311dc

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

libraries/Nicla_System/examples/NiclaSenseME_BatteryStatus/NiclaSenseME_BatteryStatus.ino

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,7 @@ void setup()
168168

169169
nicla::leds.setColor(green);
170170

171-
nicla::enableCharge();
171+
nicla::enableCharging();
172172
}
173173

174174
void loop()

libraries/Nicla_System/src/Nicla_System.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ bool nicla::enterShipMode()
103103
_pmic.writeByte(BQ25120A_ADDRESS, BQ25120A_STATUS, status_reg);
104104
}
105105

106-
bool nicla::enableCharge(uint8_t mA, bool disableNtc)
106+
bool nicla::enableCharging(uint16_t mA, bool disableNtc)
107107
{
108108
/*
109109
The ICHRG is calculated using the following equation:

libraries/Nicla_System/src/Nicla_System.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,11 +55,11 @@ class nicla {
5555
/**
5656
* @brief Enables fast charging of the battery.
5757
*
58-
* @param mA The desired milliampere (mA) charging current. The default is 20mA.
58+
* @param mA The desired milliampere (mA) charging current. Range: 5mA - 35mA and 40mA - 300mA. The default is 20mA.
5959
* @param disableNtc Whether to disable Temperature Sense and interrupt on charge. The default is true.
6060
* @return true If the fast charging is enabled successfully. False, otherwise.
6161
*/
62-
static bool enableCharge(uint8_t mA = 20, bool disableNtc = true);
62+
static bool enableCharging(uint16_t mA = 20, bool disableNtc = true);
6363

6464
/**
6565
* @brief Enables or disables the negative temperature coefficient (NTC) thermistor.

0 commit comments

Comments
 (0)