smit-happens/YCP_EVOS

Battery % Bar goes past the end of the screen and wraps around

Closed this issue · 1 comments

End goal

Battery bar does not go past the end of the bar 'frame'

Your Code

int hvBarLength = ((BAR_LENGTH-2)*hvBattPercent) / 100;```
this calculation makes an assumption that hvBattPercent is in the range 0,100

fixed in e1bc0b6