Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Prevent division by 0 error in battery usage OSD element #9644

Merged
merged 1 commit into from Mar 28, 2020

Conversation

etracer65
Copy link
Member

If the bat_capacity was set to 0 (the default) and the "Battery usage" element was enabled then it would result in a division by 0.

If the `bat_capacity` was set to 0 (the default) then it would result in a division by 0.
@etracer65 etracer65 added this to the 4.1.6 milestone Mar 26, 2020
@mikeller mikeller merged commit fee4f6f into betaflight:master Mar 28, 2020
mikeller added a commit that referenced this pull request Mar 28, 2020
Prevent division by 0 error in battery usage OSD element
@etracer65 etracer65 deleted the osd_battery_usage_div0 branch June 2, 2020 14:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants