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

fix issue

This commit is contained in:
2025-03-29 19:05:29 +01:00
parent 49f47b54fa
commit d9f531efff
2 changed files with 2 additions and 2 deletions

View File

@@ -7,7 +7,7 @@ void init_modulation_power_measure(MPXPowerMeasurement* mpx, int sample_rate) {
}
float measure_mpx(MPXPowerMeasurement* mpx, int deviation) {
mpx->sample += 20*log10f(deviation/19);
mpx->sample += 20*log10f(deviation/19000.0f);
mpx->i++;
if (mpx->i >= mpx->sample_rate) {