|
|
|
|
@ -588,8 +588,10 @@ static uint16_t get_trigger_level(
|
|
|
|
|
#endif
|
|
|
|
|
){
|
|
|
|
|
index_y_t trigger;
|
|
|
|
|
if (setting.trigger_trace != 255)
|
|
|
|
|
setting.trigger_level = measured[setting.trigger_trace][x];
|
|
|
|
|
#ifdef __BANDS__
|
|
|
|
|
if (setting.multi_band && !setting.multi_trace) {
|
|
|
|
|
else if (setting.multi_band && !setting.multi_trace) {
|
|
|
|
|
int b = getBand(x);
|
|
|
|
|
setting.trigger_level = setting.bands[b].level;
|
|
|
|
|
}
|
|
|
|
|
@ -1898,11 +1900,16 @@ draw_frequencies(void)
|
|
|
|
|
ili9341_fill(FREQUENCIES_XPOS1, CHART_BOTTOM + 1, LCD_WIDTH - FREQUENCIES_XPOS1, LCD_HEIGHT - CHART_BOTTOM - 1);
|
|
|
|
|
int idx=0;
|
|
|
|
|
do {
|
|
|
|
|
int next_idx = idx;
|
|
|
|
|
int b = getBand(idx);
|
|
|
|
|
while (b == getBand(++next_idx));
|
|
|
|
|
// plot_printf(buf1, sizeof(buf1), "%.3QHz-%.3QHz %5.1QHz/", setting.bands[b].start + (setting.frequency_offset - FREQUENCY_SHIFT), setting.bands[b].end + (setting.frequency_offset - FREQUENCY_SHIFT), grid_span);
|
|
|
|
|
plot_printf(buf1, sizeof(buf1), "%.3QHz %5.1QHz/", setting.bands[b].start + (setting.frequency_offset - FREQUENCY_SHIFT), grid_span);
|
|
|
|
|
if (next_idx - idx < sweep_points/4)
|
|
|
|
|
plot_printf(buf1, sizeof(buf1), "%.3QHz", (setting.bands[b].start+setting.bands[b].end)/2 + (setting.frequency_offset - FREQUENCY_SHIFT), grid_span);
|
|
|
|
|
else
|
|
|
|
|
plot_printf(buf1, sizeof(buf1), "%.3QHz %5.1QHz/", setting.bands[b].start + (setting.frequency_offset - FREQUENCY_SHIFT), grid_span);
|
|
|
|
|
ili9341_drawstring(buf1, FREQUENCIES_XPOS1+idx, FREQUENCIES_YPOS);
|
|
|
|
|
while (b == getBand(++idx));
|
|
|
|
|
idx = next_idx;
|
|
|
|
|
} while (idx < sweep_points - 10);
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
|