MuditaOS icon indicating copy to clipboard operation
MuditaOS copied to clipboard

[BH-1739] Fix problem with charging the device

Open dawidwojtas-mudita opened this issue 1 year ago • 0 comments

For some chargers, the USB can't detect plug events and returns an error code. Maybe it is a hardware issue or the charger is not USB-compliant. However, we can try to check the voltage. If the voltage is valid it means that the charger is connected and we can enable charging. Also changed the name of the charging driver and did a small refactor.

Your checklist for this pull request

Make sure that this PR:

  • [x] Complies with our guidelines for contributions
  • [ ] Has unit tests if possible
  • [ ] Has documentation updated
  • [x] Has changelog entry added

dawidwojtas-mudita avatar Jul 19 '23 14:07 dawidwojtas-mudita