Skip to content

Commit

Permalink
Merge pull request #13 from custodey/patch-1
Browse files Browse the repository at this point in the history
Update XPowersAXP2101.tpp
  • Loading branch information
lewisxhe committed Oct 11, 2023
2 parents 6e5d801 + 10dbb72 commit aa57c37
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/XPowersAXP2101.tpp
Original file line number Diff line number Diff line change
Expand Up @@ -280,17 +280,17 @@ public:

bool isBatInActiveModeState(void)
{
return getRegisterBit(XPOWERS_AXP2101_STATUS1, 3);
return getRegisterBit(XPOWERS_AXP2101_STATUS1, 2);
}

bool getThermalRegulationStatus(void)
{
return getRegisterBit(XPOWERS_AXP2101_STATUS1, 2);
return getRegisterBit(XPOWERS_AXP2101_STATUS1, 1);
}

bool getCurrnetLimitStatus(void)
{
return getRegisterBit(XPOWERS_AXP2101_STATUS1, 1);
return getRegisterBit(XPOWERS_AXP2101_STATUS1, 0);
}

bool isCharging(void)
Expand Down

0 comments on commit aa57c37

Please sign in to comment.