Skip to content

Commit

Permalink
Change logmag value format (not use suffixes)
Browse files Browse the repository at this point in the history
Use x1 on cable length input (enter before)
  • Loading branch information
DiSlord committed Jan 11, 2025
1 parent 676280e commit 760046d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion plot.c
Original file line number Diff line number Diff line change
Expand Up @@ -564,7 +564,7 @@ cartesian_scale(const float *v, int16_t *xp, int16_t *yp, float scale) {

const trace_info_t trace_info_list[MAX_TRACE_TYPE] = {
// Type name format delta format symbol ref scale get value
[TRC_LOGMAG] = {"LOGMAG", "%.3F%s", S_DELTA "%.3F%s", S_dB, NGRIDY-1, 10.0f, logmag },
[TRC_LOGMAG] = {"LOGMAG", "%.2f%s", S_DELTA "%.3f%s", S_dB, NGRIDY-1, 10.0f, logmag },
[TRC_PHASE] = {"PHASE", "%.2f%s", S_DELTA "%.2f%s", S_DEGREE, NGRIDY/2, 90.0f, phase },
[TRC_DELAY] = {"DELAY", "%.4F%s", "%.4F%s", S_SECOND, NGRIDY/2, 1e-9f, groupdelay_from_array},
[TRC_SMITH] = {"SMITH", NULL, NULL, "", 0, 1.00f, NULL }, // Custom
Expand Down
3 changes: 1 addition & 2 deletions ui.c
Original file line number Diff line number Diff line change
Expand Up @@ -1230,7 +1230,6 @@ static UI_FUNCTION_ADV_CALLBACK(menu_marker_tracking_acb) {
#ifdef __VNA_MEASURE_MODULE__
extern const menuitem_t *menu_measure_list[];
static UI_FUNCTION_ADV_CALLBACK(menu_measure_acb) {
(void)data;
if (b) {
b->icon = current_props._measure == data ? BUTTON_ICON_GROUP_CHECKED : BUTTON_ICON_GROUP;
return;
Expand Down Expand Up @@ -2887,7 +2886,7 @@ static const keypads_t keypads_mkufloat[] = {
{ 0x20, KP_9 },
{ 0x31, KP_m },
{ 0x32, KP_k },
{ 0x33, KP_ENTER },
{ 0x33, KP_X1 },
{ 0x23, KP_BS },
{ 0x30, KP_EMPTY },
};
Expand Down

0 comments on commit 760046d

Please sign in to comment.