From e9af6c5fedec9abec6dc88290a4683767e0917f6 Mon Sep 17 00:00:00 2001 From: Bas Delfos Date: Sat, 12 Nov 2016 09:08:53 +0100 Subject: [PATCH] Get rid of build warning on non DSHOT targets --- src/main/sensors/battery.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/sensors/battery.c b/src/main/sensors/battery.c index a754e210e..b808f8037 100644 --- a/src/main/sensors/battery.c +++ b/src/main/sensors/battery.c @@ -219,11 +219,11 @@ void updateCurrentMeter(int32_t lastUpdateAt, rxConfig_t *rxConfig, uint16_t dea case CURRENT_SENSOR_NONE: amperage = 0; break; - #ifdef USE_ESC_TELEMETRY case CURRENT_SENSOR_ESC: + #ifdef USE_ESC_TELEMETRY amperage = getEscTelemetryCurrent(); + #endif break; - #endif } #ifdef USE_ESC_TELEMETRY