Fix MAX_TRACE_TYPE to 13

Increase digit for show Q factor (use %.3f format)
This commit is contained in:
DiSlord 2020-06-21 08:00:01 +03:00
parent 76223f5e25
commit 3213a8022c
3 changed files with 4 additions and 4 deletions

4
plot.c
View file

@ -665,7 +665,7 @@ trace_get_value_string(int t, char *buf, int len, float array[POINTS_COUNT][2],
v = reactance(coeff);
break;
case TRC_Q:
format = "%.1f";
format = "%.3f";
v = qualityfactor(coeff);
break;
case TRC_SMITH:
@ -729,7 +729,7 @@ trace_get_value_string_delta(int t, char *buf, int len, float array[POINTS_COUNT
v = reactance(coeff);
break;
case TRC_Q:
format = "%.1f";
format = "%.3f";
v = qualityfactor(coeff);
break;
//case TRC_ADMIT: