Merge pull request #7546 from mikeller/fix_battery_filtering

Fixed battery filtering when period is not a multiple of 10.
This commit is contained in:
Michael Keller 2019-02-11 11:39:29 +13:00 committed by GitHub
commit 93edcaf30c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -32,7 +32,7 @@
#define MAX_AUTO_DETECT_CELL_COUNT 8
#define GET_BATTERY_LPF_FREQUENCY(period) (1.0f / (period / 10))
#define GET_BATTERY_LPF_FREQUENCY(period) (1 / (period / 10.0f))
enum {
AUTO_PROFILE_CELL_COUNT_STAY = 0, // Stay on this profile irrespective of the detected cell count. Use this profile if no other profile matches (default, i.e. auto profile switching is off)