lewisxhe / AXP202X_Library

Arduino & ESP-IDF libraries written for AXP19x, 20x
MIT License
91 stars 40 forks source link

Fix setPowerDownVoltage and getPowerDownVoltage #43

Closed papillon81 closed 3 years ago

papillon81 commented 3 years ago

Bitmask was too narrow and was applied in the wrong way. Not all available values of the power down voltage registers were available. getPowerDownVoltage did not show the set value.