0
1
mirror of https://github.com/radio95-rnt/fm95.git synced 2026-02-26 19:23:51 +01:00
This commit is contained in:
2025-03-29 19:08:12 +01:00
parent decd7662de
commit 8d4a14d6d1
2 changed files with 4 additions and 2 deletions

View File

@@ -18,6 +18,6 @@ float measure_mpx(MPXPowerMeasurement* mpx, int deviation) {
return modulation_power;
} else {
return mpx->sample/mpx->i;
return NAN;
}
}

View File

@@ -517,7 +517,9 @@ int main(int argc, char **argv) {
if(sca_on) output[i] += modulate_fm(&sca_mod, hard_clip(current_sca_in, sca_clipper_threshold))*SCA_VOLUME;
float mpower = measure_mpx(&power, output[i]*75000);
printf("MPX Power over 3 dbr (%f)\r", mpower);
if(mpower > 3 && mpower != NAN) {
printf("MPX Power over 3 dbr (%f)\n", mpower);
}
output[i] *= master_volume;
}