Skip to content

Commit

Permalink
Update XPowersAXP2101.tpp
Browse files Browse the repository at this point in the history
Updated XPOWERS_AXP2101_STATUS1 bits according to datasheet in functions isBatInActiveModeState, getThermalRegulationStatus and getCurrnetLimitStatus
  • Loading branch information
custodey committed Oct 11, 2023
1 parent 6e5d801 commit 10dbb72
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 10dbb72

Please sign in to comment.