Get rid of build warning on non DSHOT targets

This commit is contained in:
Bas Delfos 2016-11-12 09:08:53 +01:00
parent a146a6bc4b
commit e9af6c5fed
1 changed files with 2 additions and 2 deletions

View File

@ -219,11 +219,11 @@ void updateCurrentMeter(int32_t lastUpdateAt, rxConfig_t *rxConfig, uint16_t dea
case CURRENT_SENSOR_NONE: case CURRENT_SENSOR_NONE:
amperage = 0; amperage = 0;
break; break;
#ifdef USE_ESC_TELEMETRY
case CURRENT_SENSOR_ESC: case CURRENT_SENSOR_ESC:
#ifdef USE_ESC_TELEMETRY
amperage = getEscTelemetryCurrent(); amperage = getEscTelemetryCurrent();
#endif
break; break;
#endif
} }
#ifdef USE_ESC_TELEMETRY #ifdef USE_ESC_TELEMETRY