mirror of
https://github.com/radio95-rnt/fm95.git
synced 2026-02-26 19:23:51 +01:00
really?
This commit is contained in:
3
.vscode/settings.json
vendored
3
.vscode/settings.json
vendored
@@ -19,7 +19,8 @@
|
||||
"stdint.h": "c",
|
||||
"asoundlib.h": "c",
|
||||
"hilbert.h": "c",
|
||||
"fm_modulator.h": "c"
|
||||
"fm_modulator.h": "c",
|
||||
"bs412.h": "c"
|
||||
},
|
||||
"C_Cpp.errorSquiggles": "disabled"
|
||||
}
|
||||
@@ -18,6 +18,6 @@ float measure_mpx(MPXPowerMeasurement* mpx, int deviation) {
|
||||
|
||||
return modulation_power;
|
||||
} else {
|
||||
return NAN;
|
||||
return -9999.0f;
|
||||
}
|
||||
}
|
||||
@@ -517,7 +517,7 @@ 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);
|
||||
if(mpower != NAN) {
|
||||
if(mpower != 9999.0f) {
|
||||
printf("MPX Power (%f)\n", mpower);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user