add wait_dsp function, add trace all off command, fix hang on ploting polar with trace 0

This commit is contained in:
TT 2016-11-28 23:44:21 +09:00
parent 25dd4bf182
commit 69c41aa57e
4 changed files with 44 additions and 42 deletions

8
plot.c
View file

@ -1066,10 +1066,10 @@ draw_cell(int m, int n)
#if 1
/* draw rectanglar plot */
if (search_index_x(x0, trace_index[0], &i0, &i1)) {
for (t = 0; t < TRACES_MAX; t++) {
if (!trace[t].enabled || trace[t].polar)
continue;
for (t = 0; t < TRACES_MAX; t++) {
if (!trace[t].enabled || trace[t].polar)
continue;
if (search_index_x(x0, trace_index[t], &i0, &i1)) {
if (i0 > 0)
i0--;
for (i = i0; i < i1; i++) {