Skip to content

Commit

Permalink
Limit rx888 gain to +34 dB, the hardware limit
Browse files Browse the repository at this point in the history
  • Loading branch information
ka9q committed Aug 15, 2024
1 parent b10feae commit aca53f0
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 @@ -414,7 +414,7 @@ static void *agc_rx888(void *arg){
frontend->if_power *= dB2power(-fabsf(AGC_step));
// Unlatch high water mark
frontend->if_power_max = 0;
} else if(sdr->agc && new_dBFS < AGC_lower_limit){
} else if(sdr->agc && new_dBFS < AGC_lower_limit && frontend->rf_gain < 34){
// Increase gain by AGC_step
float new_gain = frontend->rf_gain + fabsf(AGC_step);
if(Verbose)
Expand Down

0 comments on commit aca53f0

Please sign in to comment.