Run trace command in sweep thread

Change grid text format to 7.3
pull/4/head
DiSlord 6 years ago
parent 38061a6921
commit 5a46a6486f

@ -165,7 +165,7 @@ static THD_FUNCTION(Thread1, arg)
else else
redraw_request |= REDRAW_CAL_STATUS | REDRAW_AREA | REDRAW_FREQUENCY; redraw_request |= REDRAW_CAL_STATUS | REDRAW_AREA | REDRAW_FREQUENCY;
} }
continue; // continue;
} }
// START_PROFILE // START_PROFILE
// Process UI inputs // Process UI inputs
@ -2310,7 +2310,7 @@ static const VNAShellCommand commands[] =
{"save" , cmd_save , 0}, {"save" , cmd_save , 0},
{"recall" , cmd_recall , CMD_WAIT_MUTEX}, {"recall" , cmd_recall , CMD_WAIT_MUTEX},
#endif #endif
{"trace" , cmd_trace , 0}, {"trace" , cmd_trace , CMD_WAIT_MUTEX},
{"trigger" , cmd_trigger , 0}, {"trigger" , cmd_trigger , 0},
{"marker" , cmd_marker , 0}, {"marker" , cmd_marker , 0},
#ifdef __VNA__ #ifdef __VNA__

@ -304,7 +304,7 @@ extern uint16_t _grid_y;
#define AREA_WIDTH_NORMAL (CELLOFFSETX + WIDTH + 1) #define AREA_WIDTH_NORMAL (CELLOFFSETX + WIDTH + 1)
#define AREA_HEIGHT_NORMAL ( HEIGHT + 1) #define AREA_HEIGHT_NORMAL ( HEIGHT + 1)
#define GRID_X_TEXT (AREA_WIDTH_NORMAL - 6*5) #define GRID_X_TEXT (AREA_WIDTH_NORMAL - 7*5)
// Smith/polar chart // Smith/polar chart
#define P_CENTER_X (CELLOFFSETX + WIDTH/2) #define P_CENTER_X (CELLOFFSETX + WIDTH/2)

@ -1958,7 +1958,7 @@ static void cell_grid_line_info(int x0, int y0)
for (int i = 0; i < NGRIDY; i++){ for (int i = 0; i < NGRIDY; i++){
if (ypos >= CELLHEIGHT) break; if (ypos >= CELLHEIGHT) break;
if (ypos >= -FONT_GET_HEIGHT){ if (ypos >= -FONT_GET_HEIGHT){
plot_printf(buf, sizeof buf, "% 6.2F", ref); plot_printf(buf, sizeof buf, "% 7.3F", ref);
cell_drawstring(buf, xpos, ypos); cell_drawstring(buf, xpos, ypos);
} }
ypos+=GRIDY; ypos+=GRIDY;

Loading…
Cancel
Save

Powered by TurnKey Linux.