0
mirror of https://github.com/OneOfEleven/uv-k5-firmware-custom.git synced 2025-06-19 14:48:03 +03:00

fix freq/chan scan + add 4th FM radio band

This commit is contained in:
OneOfEleven
2023-10-24 11:47:49 +01:00
parent 2d7d327fd0
commit fa1cbeb049
28 changed files with 197 additions and 168 deletions

View File

@ -17,7 +17,7 @@
#ifndef UI_FM_H
#define UI_FM_H
#if defined(ENABLE_FMRADIO_68_108) || defined(ENABLE_FMRADIO_76_108) || defined(ENABLE_FMRADIO_875_108)
#ifdef ENABLE_FMRADIO
void UI_DisplayFM(void);
#endif

View File

@ -17,7 +17,7 @@
#include <string.h>
#include "app/search.h"
#if defined(ENABLE_FMRADIO_68_108) || defined(ENABLE_FMRADIO_76_108) || defined(ENABLE_FMRADIO_875_108)
#ifdef ENABLE_FMRADIO
#include "app/fm.h"
#endif
#include "bitmaps.h"
@ -89,7 +89,7 @@ void UI_DisplayStatus(const bool test_display)
else
#endif
{
#if defined(ENABLE_FMRADIO_68_108) || defined(ENABLE_FMRADIO_76_108) || defined(ENABLE_FMRADIO_875_108)
#ifdef ENABLE_FMRADIO
// FM indicator
if (g_fm_radio_mode || test_display)
{

View File

@ -17,7 +17,7 @@
#include <string.h>
#include "app/dtmf.h"
#if defined(ENABLE_FMRADIO_68_108) || defined(ENABLE_FMRADIO_76_108) || defined(ENABLE_FMRADIO_875_108)
#ifdef ENABLE_FMRADIO
#include "app/fm.h"
#endif
#include "app/search.h"
@ -26,7 +26,7 @@
#ifdef ENABLE_AIRCOPY
#include "ui/aircopy.h"
#endif
#if defined(ENABLE_FMRADIO_68_108) || defined(ENABLE_FMRADIO_76_108) || defined(ENABLE_FMRADIO_875_108)
#ifdef ENABLE_FMRADIO
#include "ui/fmradio.h"
#endif
#include "ui/inputbox.h"
@ -51,7 +51,7 @@ void GUI_DisplayScreen(void)
UI_DisplayMain();
break;
#if defined(ENABLE_FMRADIO_68_108) || defined(ENABLE_FMRADIO_76_108) || defined(ENABLE_FMRADIO_875_108)
#ifdef ENABLE_FMRADIO
case DISPLAY_FM:
UI_DisplayFM();
break;
@ -89,7 +89,7 @@ void GUI_SelectNextDisplay(gui_display_type_t Display)
g_in_sub_menu = false;
g_css_scan_mode = CSS_SCAN_MODE_OFF;
g_scan_state_dir = SCAN_STATE_DIR_OFF;
#if defined(ENABLE_FMRADIO_68_108) || defined(ENABLE_FMRADIO_76_108) || defined(ENABLE_FMRADIO_875_108)
#ifdef ENABLE_FMRADIO
g_fm_scan_state = FM_SCAN_OFF;
#endif
g_ask_for_confirmation = 0;