mirror of
https://github.com/ttrftech/NanoVNA.git
synced 2026-01-03 07:00:01 +01:00
fix hardcoded array length
This commit is contained in:
parent
2a43164853
commit
d1c6ccfe61
10
plot.c
10
plot.c
|
|
@ -853,8 +853,9 @@ void plot_into_index(float measured[2][101][2])
|
|||
if (!trace[t].enabled)
|
||||
continue;
|
||||
int n = trace[t].channel;
|
||||
trace_index[t][i] = trace_into_index(x, t, i,
|
||||
measured[n], frequencies, sweep_points);
|
||||
trace_index[t][i] = trace_into_index(
|
||||
x, t, i,
|
||||
measured[n], frequencies, sweep_points);
|
||||
}
|
||||
}
|
||||
#if 0
|
||||
|
|
@ -1429,8 +1430,9 @@ cell_draw_marker_info(int m, int n, int w, int h)
|
|||
trace_get_info(t, buf, sizeof buf);
|
||||
cell_drawstring_5x7(w, h, buf, xpos, ypos, config.trace_color[t]);
|
||||
xpos += 64;
|
||||
trace_get_value_string(t, buf, sizeof buf,
|
||||
idx, measured[trace[t].channel], frequencies, 101);
|
||||
trace_get_value_string(
|
||||
t, buf, sizeof buf,
|
||||
idx, measured[trace[t].channel], frequencies, sweep_points);
|
||||
cell_drawstring_5x7(w, h, buf, xpos, ypos, config.trace_color[t]);
|
||||
j++;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue