mirror of
https://github.com/radio95-rnt/fm95.git
synced 2026-02-26 19:23:51 +01:00
store avg dev of the last minute
This commit is contained in:
@@ -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;
|
||||
}
|
||||
Reference in New Issue
Block a user