From 8aee0b25e20fa78586a66f1a9904c2922e31d791 Mon Sep 17 00:00:00 2001 From: Dominic Clifton Date: Tue, 3 Feb 2015 16:20:14 +0000 Subject: [PATCH] Fix bug where current meter didn't work unless VBAT feature was enabled. --- src/main/main.c | 3 +-- src/main/version.h | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/src/main/main.c b/src/main/main.c index ba7453265e..549cd9058a 100644 --- a/src/main/main.c +++ b/src/main/main.c @@ -387,8 +387,7 @@ void init(void) // Now that everything has powered up the voltage and cell count be determined. - // Check battery type/voltage - if (feature(FEATURE_VBAT)) + if (feature(FEATURE_VBAT | FEATURE_CURRENT_METER)) batteryInit(&masterConfig.batteryConfig); #ifdef DISPLAY diff --git a/src/main/version.h b/src/main/version.h index 0c8c645aed..faf7da75e9 100644 --- a/src/main/version.h +++ b/src/main/version.h @@ -17,7 +17,7 @@ #define FC_VERSION_MAJOR 1 // increment when a major release is made (big new feature, etc) #define FC_VERSION_MINOR 7 // increment when a minor release is made (small new feature, change etc) -#define FC_VERSION_PATCH_LEVEL 0 // increment when a bug is fixed +#define FC_VERSION_PATCH_LEVEL 1 // increment when a bug is fixed #define STR_HELPER(x) #x #define STR(x) STR_HELPER(x)