1
0
Fork 0
mirror of https://github.com/betaflight/betaflight.git synced 2025-07-24 00:35:39 +03:00

Define macro HZ_TO_INTERVAL_US() and remove unneeded comments

This commit is contained in:
jirif 2018-07-27 20:59:19 +02:00
parent 2c4659c7cd
commit 0111949c63
3 changed files with 5 additions and 3 deletions

View file

@ -140,7 +140,7 @@ currentMeterADCState_t currentMeterADCState;
void currentMeterADCInit(void)
{
memset(&currentMeterADCState, 0, sizeof(currentMeterADCState_t));
biquadFilterInitLPF(&adciBatFilter, IBAT_LPF_FREQ, 20000); //50HZ Update
biquadFilterInitLPF(&adciBatFilter, IBAT_LPF_FREQ, HZ_TO_INTERVAL_US(50));
}
void currentMeterADCRefresh(int32_t lastUpdateAt)