hide voltage scale in FFT mode
This commit is contained in:
parent
f798fd6d03
commit
92e1128e5a
1 changed files with 20 additions and 11 deletions
11
main.c
11
main.c
|
@ -313,10 +313,17 @@ void display_waveform(UArg arg1, UArg arg2)
|
|||
|
||||
// info
|
||||
GrContextForegroundSet(&sContext, ClrWheat);
|
||||
GrStringDraw(&sContext, gVoltageScaleStr[local_options.voltage_scale], /*length*/ -1, /*x*/ 0, /*y*/ 0, /*opaque*/ false);
|
||||
|
||||
snprintf(str, sizeof(str), "CPU Load %.1f%%", usage_percent);
|
||||
GrStringDraw(&sContext, str, /*length*/ -1, /*x*/ 0, /*y*/ HEIGHT - 10, /*opaque*/ false);
|
||||
|
||||
|
||||
if (local_options.fft) {
|
||||
GrStringDraw(&sContext, "20 dB" , /*length*/ -1, /*x*/ 0, /*y*/ 0, /*opaque*/ false);
|
||||
|
||||
} else {
|
||||
GrStringDraw(&sContext, gVoltageScaleStr[local_options.voltage_scale], /*length*/ -1, /*x*/ 0, /*y*/ 0, /*opaque*/ false);
|
||||
|
||||
switch (local_options.trigger_mode) {
|
||||
case 1:
|
||||
GrStringDraw(&sContext, "^", /*length*/ -1, /*x*/ WIDTH - 10, /*y*/ 0, /*opaque*/ false);
|
||||
|
@ -328,6 +335,8 @@ void display_waveform(UArg arg1, UArg arg2)
|
|||
GrStringDraw(&sContext, "-", /*length*/ -1, /*x*/ WIDTH - 10, /*y*/ 0, /*opaque*/ false);
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
// display graph
|
||||
GrContextForegroundSet(&sContext, ClrYellow);
|
||||
|
|
Loading…
Reference in a new issue