Skip to content

Commit

Permalink
oops fix sign
Browse files Browse the repository at this point in the history
  • Loading branch information
ka9q committed Sep 12, 2024
1 parent 2d405f7 commit cc4c2a6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rx888.c
Original file line number Diff line number Diff line change
Expand Up @@ -424,7 +424,7 @@ static void *agc_rx888(void *arg){
if(frontend->rf_agc && (new_dBFS > AGC_upper_limit || new_dBFS < AGC_lower_limit)){
float const target_level = (AGC_upper_limit + AGC_lower_limit)/2;
float const new_gain = frontend->rf_gain - (new_dBFS - target_level);
if(new_gain > 34){ // Don't try to go above max gain
if(new_gain < 34){ // Don't try to go above max gain
if(Verbose)
fprintf(stdout,"Front end gain change from %.1f dB to %.1f dB\n",frontend->rf_gain,new_gain);
rx888_set_gain(sdr,new_gain,false);
Expand Down

0 comments on commit cc4c2a6

Please sign in to comment.