diff --git a/sa_core.c b/sa_core.c index 1ab485c..2118522 100644 --- a/sa_core.c +++ b/sa_core.c @@ -1800,22 +1800,24 @@ modulation_again: } else #endif { // Else set LO ('s) -#ifdef __SI4432__ - if (setting.mode == M_LOW && !setting.tracking && S_STATE(setting.below_IF)) // if in low input mode and below IF - set_freq (SI4432_LO, local_IF-lf); // set LO SI4432 to below IF frequency + uint32_t target_f; + if (setting.mode == M_LOW && !setting.tracking && S_STATE(setting.below_IF)) // if in low input mode and below IF + target_f = local_IF-lf; // set LO SI4432 to below IF frequency else - set_freq (SI4432_LO, local_IF+lf); // otherwise to above IF + target_f = local_IF+lf; // otherwise to above IF +#ifdef __SI4432__ + set_freq (SI4432_LO, target_f); // otherwise to above IF #endif } // ----------- Set IF ------------------ -#ifdef __SI4432__ if (local_IF != 0) { +#ifdef __SI4432__ set_freq (SI4432_RX , local_IF); - } #endif + } if (MODE_OUTPUT(setting.mode)) { #ifdef __SI4432__