mirror of
https://github.com/radio95-rnt/fm95.git
synced 2026-07-30 16:29:15 +02:00
fix
This commit is contained in:
+1
-1
@@ -545,7 +545,7 @@ int main(int argc, char **argv) {
|
|||||||
float mpx_only = measure_mpx(&mpx_only_power, mpx * mpx_deviation);
|
float mpx_only = measure_mpx(&mpx_only_power, mpx * mpx_deviation);
|
||||||
float mpower = measure_mpx(&power, (audio+mpx) * mpx_deviation);
|
float mpower = measure_mpx(&power, (audio+mpx) * mpx_deviation);
|
||||||
if (mpower > mpx_power) {
|
if (mpower > mpx_power) {
|
||||||
float excess_power = mpower - mpx_power - mpx_only_power;
|
float excess_power = mpower - mpx_power - mpx_only;
|
||||||
audio *= (dbr_to_deviation(-excess_power)/mpx_deviation);
|
audio *= (dbr_to_deviation(-excess_power)/mpx_deviation);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user