HW refresh and white Y-axis values

pull/4/head
erikkaashoek 6 years ago
parent d312fb3986
commit fd8a595625

@ -1953,7 +1953,7 @@ static void cell_grid_line_info(int x0, int y0)
char buf[32]; char buf[32];
int xpos = GRID_X_TEXT - x0; int xpos = GRID_X_TEXT - x0;
int ypos = 0 - y0 + 2; int ypos = 0 - y0 + 2;
ili9341_set_foreground(DEFAULT_GRID_COLOR); ili9341_set_foreground(/* DEFAULT_GRID_COLOR */ DEFAULT_MENU_COLOR );
float ref = get_trace_refpos(TRACE_ACTUAL); float ref = get_trace_refpos(TRACE_ACTUAL);
float scale = get_trace_scale(TRACE_ACTUAL);; float scale = get_trace_scale(TRACE_ACTUAL);;
for (int i = 0; i < NGRIDY; i++){ for (int i = 0; i < NGRIDY; i++){

@ -801,7 +801,7 @@ void calculate_step_delay(void)
if (setting.frequency_step == 0) { // zero span mode, not dependent on selected RBW if (setting.frequency_step == 0) { // zero span mode, not dependent on selected RBW
SI4432_step_delay = 0; SI4432_step_delay = 0;
} else { } else {
#if 1 #if 0 // Table for 200us delay inside SI4432_set_freq
if (actual_rbw_x10 >= 1910) { SI4432_step_delay = 150; SI4432_offset_delay = 10; } if (actual_rbw_x10 >= 1910) { SI4432_step_delay = 150; SI4432_offset_delay = 10; }
else if (actual_rbw_x10 >= 1420) { SI4432_step_delay = 350; SI4432_offset_delay = 10; } else if (actual_rbw_x10 >= 1420) { SI4432_step_delay = 350; SI4432_offset_delay = 10; }
else if (actual_rbw_x10 >= 750) { SI4432_step_delay = 450; SI4432_offset_delay = 10; } else if (actual_rbw_x10 >= 750) { SI4432_step_delay = 450; SI4432_offset_delay = 10; }
@ -1673,8 +1673,8 @@ static bool sweep(bool break_on_operation)
modulation_counter = 0; // init modulation counter in case needed modulation_counter = 0; // init modulation counter in case needed
// if (sweep_counter > 5000 && setting.average == AV_OFF) // refresh HW after 5000 sweeps if (sweep_counter > 5000 && setting.average == AV_OFF && setting.frequency_step > 0) // refresh HW after 5000 sweeps
// dirty = true; dirty = true;
if (dirty) // Calculate new scanning solution if (dirty) // Calculate new scanning solution
sweep_counter = 0; sweep_counter = 0;

Loading…
Cancel
Save

Powered by TurnKey Linux.