fix: show channel in marker info

This commit is contained in:
TT 2019-11-29 22:18:47 +09:00
parent 39c40a1f43
commit b2f2ec3320

2
plot.c
View file

@ -1608,7 +1608,7 @@ cell_draw_marker_info(int m, int n, int w, int h)
xpos -= m * CELLWIDTH -CELLOFFSETX;
ypos -= n * CELLHEIGHT;
strcpy(buf, "CH0");
buf[2] += t;
buf[2] += trace[t].channel;
//chsnprintf(buf, sizeof buf, "CH%d", trace[t].channel);
cell_drawstring_invert_5x7(w, h, buf, xpos, ypos, config.trace_color[t], t == uistat.current_trace);
xpos += 20;