m5stack / M5StickC

M5StickC Arduino Library
MIT License
477 stars 222 forks source link

AXP192: Fixed integer underflow in GetCoulombData() #93

Closed mdevel1 closed 4 years ago

mdevel1 commented 4 years ago

When coout is bigger than coin, an unsigned underflow occurs before conversion to float. Bounds checking may be required, or may be omitted with real battery parameters. Documentation is not available.