1
0
Fork 0
mirror of https://github.com/betaflight/betaflight.git synced 2025-07-19 14:25:20 +03:00

CF/BF - improve const correctness by declaring iBatSample as const.

This commit is contained in:
Hydra 2017-03-18 16:57:50 +00:00 committed by Dominic Clifton
parent 9482a12677
commit 01732f4523

View file

@ -126,7 +126,7 @@ void currentMeterADCInit(void)
void currentMeterADCRefresh(int32_t lastUpdateAt)
{
uint16_t iBatSample = adcGetChannel(ADC_CURRENT);
const uint16_t iBatSample = adcGetChannel(ADC_CURRENT);
currentMeterADCState.amperageLatest = currentMeterADCToCentiamps(iBatSample);
currentMeterADCState.amperage = currentMeterADCToCentiamps(biquadFilterApply(&adciBatFilter, iBatSample));