Skip to content

Commit

Permalink
more cowbell
Browse files Browse the repository at this point in the history
  • Loading branch information
ka9q committed Apr 18, 2023
1 parent 9639148 commit cc8b998
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions radio_status.c
Original file line number Diff line number Diff line change
Expand Up @@ -181,9 +181,10 @@ static int decode_radio_commands(struct demod *demod,uint8_t const *buffer,int l
{
double const f = fabs(decode_double(cp,optlen));
if(isfinite(f)){
set_freq(demod,f);
if(demod->demod_type == SPECT_DEMOD)
if(f != demod->tune.freq && demod->demod_type == SPECT_DEMOD)
restart_needed = true; // Easier than trying to handle it inline

set_freq(demod,f);
}
}
break;
Expand Down

0 comments on commit cc8b998

Please sign in to comment.