mirror of
https://github.com/egzumer/uv-k5-firmware-custom
synced 2024-11-22 01:32:43 +00:00
Improve AM fix on-screen debug info
This commit is contained in:
parent
aac2511e43
commit
76aa4b893a
BIN
firmware.bin
BIN
firmware.bin
Binary file not shown.
Binary file not shown.
24
ui/main.c
24
ui/main.c
@ -33,6 +33,7 @@
|
||||
#include "ui/helper.h"
|
||||
#include "ui/inputbox.h"
|
||||
#include "ui/main.h"
|
||||
#include "ui/ui.h"
|
||||
|
||||
#ifndef ARRAY_SIZE
|
||||
#define ARRAY_SIZE(x) (sizeof(x) / sizeof(x[0]))
|
||||
@ -491,8 +492,27 @@ void UI_DisplayMain(void)
|
||||
{ // we're free to use the middle empty line for something
|
||||
|
||||
#ifdef ENABLE_AM_FIX_SHOW_DATA
|
||||
AM_fix_print_data(String);
|
||||
UI_PrintStringSmall(String, 2, 0, 3);
|
||||
if (gEeprom.VfoInfo[gEeprom.RX_CHANNEL].IsAM)
|
||||
{
|
||||
switch (gCurrentFunction)
|
||||
{
|
||||
case FUNCTION_TRANSMIT:
|
||||
case FUNCTION_BAND_SCOPE:
|
||||
case FUNCTION_POWER_SAVE:
|
||||
case FUNCTION_FOREGROUND:
|
||||
break;
|
||||
case FUNCTION_RECEIVE:
|
||||
case FUNCTION_MONITOR:
|
||||
case FUNCTION_INCOMING:
|
||||
// if (gScanState == SCAN_OFF && gScreenToDisplay != DISPLAY_SCANNER)
|
||||
// if (gScreenToDisplay != DISPLAY_SCANNER)
|
||||
{
|
||||
AM_fix_print_data(String);
|
||||
UI_PrintStringSmall(String, 2, 0, 3);
|
||||
}
|
||||
break;
|
||||
}
|
||||
}
|
||||
#else
|
||||
#ifdef ENABLE_AUDIO_BAR
|
||||
UI_DisplayAudioBar();
|
||||
|
Loading…
Reference in New Issue
Block a user