Skip to content

Commit

Permalink
Cleanup text display
Browse files Browse the repository at this point in the history
  • Loading branch information
xawen committed Nov 25, 2023
1 parent 495e85c commit a868bde
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions app/spectrum.c
Original file line number Diff line number Diff line change
Expand Up @@ -105,12 +105,13 @@ void DrawLabels(void){
UI_DrawSmallString(112, 2, gShortString, 8);

gShortString[2] = ' ';
Int2Ascii(CurrentStepCount, (CurrentStepCount > 100) ? 3 : 2);
Int2Ascii(CurrentStepCount, (CurrentStepCount < 100) ? 2 : 3);
UI_DrawSmallString(2, 76, gShortString, 3);

UI_DrawSmallString(2, 64, StepStrings[CurrentFreqStepIndex], 5);

Int2Ascii(CurrentScanDelay, 2);
gShortString[1] = ' ';
Int2Ascii(CurrentScanDelay, (CurrentScanDelay < 10) ? 1 : 2);
UI_DrawSmallString(142, 76, gShortString, 2);

gColorForeground = COLOR_BLUE;
Expand Down Expand Up @@ -220,11 +221,13 @@ void DrawSpectrum(uint16_t ActiveBarColor){
DISPLAY_DrawRectangle1(16, BarY + Power, 1, 128, COLOR_RED);

gColorForeground = COLOR_RED;
Int2Ascii(SquelchLevel, 3);
gShortString[2] = ' ';
Int2Ascii(SquelchLevel, (SquelchLevel < 100) ? 2 : 3);
UI_DrawSmallString(142, 64, gShortString, 3);

gColorForeground = ActiveBarColor;
Int2Ascii(RssiValue[CurrentFreqIndex], 3);
gShortString[2] = ' ';
Int2Ascii(RssiValue[CurrentFreqIndex], (RssiValue[CurrentFreqIndex] < 100) ? 2 : 3);
UI_DrawSmallString(142, 54, gShortString, 3);

}
Expand Down

0 comments on commit a868bde

Please sign in to comment.