mirror of
https://github.com/OneOfEleven/uv-k5-firmware-custom.git
synced 2025-04-29 06:41:25 +03: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/helper.h"
|
||||||
#include "ui/inputbox.h"
|
#include "ui/inputbox.h"
|
||||||
#include "ui/main.h"
|
#include "ui/main.h"
|
||||||
|
#include "ui/ui.h"
|
||||||
|
|
||||||
#ifndef ARRAY_SIZE
|
#ifndef ARRAY_SIZE
|
||||||
#define ARRAY_SIZE(x) (sizeof(x) / sizeof(x[0]))
|
#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
|
{ // we're free to use the middle empty line for something
|
||||||
|
|
||||||
#ifdef ENABLE_AM_FIX_SHOW_DATA
|
#ifdef ENABLE_AM_FIX_SHOW_DATA
|
||||||
AM_fix_print_data(String);
|
if (gEeprom.VfoInfo[gEeprom.RX_CHANNEL].IsAM)
|
||||||
UI_PrintStringSmall(String, 2, 0, 3);
|
{
|
||||||
|
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
|
#else
|
||||||
#ifdef ENABLE_AUDIO_BAR
|
#ifdef ENABLE_AUDIO_BAR
|
||||||
UI_DisplayAudioBar();
|
UI_DisplayAudioBar();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user