Skip to content

Commit 6484835

Browse files
committed
BugFix: Issue #53 - Fix set setInputCurrentLimit() for 900mA.
1 parent d6adc73 commit 6484835

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/BQ24195.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -347,7 +347,7 @@ bool PMICClass::setInputCurrentLimit(float current) {
347347
if (current >= 0.5) {
348348
current_val = CURRENT_LIM_500;
349349
}
350-
if (current >= CURRENT_LIM_900) {
350+
if (current >= 0.9) {
351351
current_val = CURRENT_LIM_900;
352352
}
353353
if (current >= 1.2) {

0 commit comments

Comments
 (0)