0
1
mirror of https://github.com/radio95-rnt/fm95.git synced 2026-02-26 11:22:00 +01:00

store avg dev of the last minute

This commit is contained in:
2025-04-04 15:33:08 +02:00
parent c534db9fa8
commit 615fd2253e

View File

@@ -23,8 +23,8 @@ float measure_mpx(MPXPowerMeasurement* mpx, float deviation) {
mpx->i++;
if (mpx->i >= mpx->sample_rate*60) {
mpx->sample = 0;
mpx->i = 1;
mpx->sample = avg_deviation;
mpx->i = 2;
}
return modulation_power;
}