Skip to content

Commit 8d74082

Browse files
authored
Merge pull request #54 from ir-mark/master
BugFix: Issue #53 - Fix set setInputCurrentLimit() for 900mA.
2 parents d6adc73 + 6484835 commit 8d74082

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)