From fb57511f9ad24755861f1dc1fea32bf7b55279d8 Mon Sep 17 00:00:00 2001 From: TT Date: Sat, 16 May 2020 08:45:10 +0900 Subject: [PATCH] view: change R+Xj to R+jX in menu label of smith value format --- plot.c | 2 +- ui.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/plot.c b/plot.c index 01b1e85..dda13eb 100644 --- a/plot.c +++ b/plot.c @@ -610,7 +610,7 @@ format_smith_value(char *buf, int len, const float coeff[2], uint32_t frequency) break; case MS_RX: - plot_printf(buf, len, "%F"S_OHM"%+Fj", zr, zi); + plot_printf(buf, len, "%F%+Fj"S_OHM, zr, zi); break; case MS_RLC: diff --git a/ui.c b/ui.c index 26ae438..df24a05 100644 --- a/ui.c +++ b/ui.c @@ -1005,7 +1005,7 @@ const menuitem_t menu_marker_smith[] = { { MT_CALLBACK, MS_LIN, "LIN", menu_marker_smith_cb }, { MT_CALLBACK, MS_LOG, "LOG", menu_marker_smith_cb }, { MT_CALLBACK, MS_REIM,"Re+Im", menu_marker_smith_cb }, - { MT_CALLBACK, MS_RX, "R+Xj", menu_marker_smith_cb }, + { MT_CALLBACK, MS_RX, "R+jX", menu_marker_smith_cb }, { MT_CALLBACK, MS_RLC, "R+L/C", menu_marker_smith_cb }, { MT_CANCEL, 0, S_LARROW" BACK", NULL }, { MT_NONE, 0, NULL, NULL } // sentinel