setting.vbw=300;// trick to get right default rbw in zero span mode
setting.vbw_x10=3000;// trick to get right default rbw in zero span mode
}
actual_rbw_x10=setting.rbw_x10;// requested rbw
if(actual_rbw_x10==0){// if auto rbw
actual_rbw_x10=20.0*setting.vbw;// rbw is twice the frequency step to ensure no gaps in coverage
actual_rbw_x10=2*setting.vbw_x10;// rbw is twice the frequency step to ensure no gaps in coverage
}
if(actual_rbw_x10<26)
actual_rbw_x10=26;
@ -1082,13 +1082,13 @@ void update_rbw(void) // calculate the actual_rbw and the vbwSteps (#
actual_rbw_x10=SI4432_SET_RBW(actual_rbw_x10);// see what rbw the SI4432 can realize
if(setting.frequency_step>0&&MODE_INPUT(setting.mode)){// When doing frequency scanning in input mode
vbwSteps=((int)(2*(setting.vbw+(actual_rbw/2))/actual_rbw));// calculate # steps in between each frequency step due to rbw being less than frequency step
vbwSteps=((int)(2*(setting.vbw_x10+(actual_rbw_x10/2))/actual_rbw_x10));// calculate # steps in between each frequency step due to rbw being less than frequency step
if(setting.step_delay==1)// if in Precise scanning