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:
parent
9482a12677
commit
01732f4523
1 changed files with 1 additions and 1 deletions
|
@ -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));
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue