mirror of
https://github.com/OneOfEleven/uv-k5-firmware-custom.git
synced 2025-04-28 14:21:25 +03:00
fix smallest font compile problem
This commit is contained in:
parent
275b2d248a
commit
c92ef43b39
@ -913,10 +913,10 @@ void MAIN_Key_UP_DOWN(bool key_pressed, bool key_held, scan_state_dir_t Directio
|
|||||||
//
|
//
|
||||||
// TODO: include this once we have the entire eeprom loaded
|
// TODO: include this once we have the entire eeprom loaded
|
||||||
//
|
//
|
||||||
if (!key_held && key_pressed)
|
//if (!key_held && key_pressed)
|
||||||
g_tx_vfo->frequency_channel = BOARD_find_channel(frequency);
|
// g_tx_vfo->frequency_channel = BOARD_find_channel(frequency);
|
||||||
else
|
//else
|
||||||
if (key_held && key_pressed)
|
//if (key_held && key_pressed)
|
||||||
g_tx_vfo->frequency_channel = 0xff;
|
g_tx_vfo->frequency_channel = 0xff;
|
||||||
|
|
||||||
if (new_band != old_band)
|
if (new_band != old_band)
|
||||||
|
@ -81,7 +81,7 @@ void MENU_start_css_scan(int8_t Direction)
|
|||||||
g_css_scan_mode = CSS_SCAN_MODE_SCANNING;
|
g_css_scan_mode = CSS_SCAN_MODE_SCANNING;
|
||||||
g_update_status = true;
|
g_update_status = true;
|
||||||
|
|
||||||
g_MENU_SCRAMBLERoll_direction = Direction;
|
g_menu_scroll_direction = Direction;
|
||||||
|
|
||||||
RADIO_select_vfos();
|
RADIO_select_vfos();
|
||||||
|
|
||||||
@ -895,7 +895,7 @@ void MENU_SelectNextCode(void)
|
|||||||
else
|
else
|
||||||
return;
|
return;
|
||||||
|
|
||||||
g_sub_menu_selection = NUMBER_AddWithWraparound(g_sub_menu_selection, g_MENU_SCRAMBLERoll_direction, 1, UpperLimit);
|
g_sub_menu_selection = NUMBER_AddWithWraparound(g_sub_menu_selection, g_menu_scroll_direction, 1, UpperLimit);
|
||||||
|
|
||||||
if (g_menu_cursor == MENU_RX_CDCSS)
|
if (g_menu_cursor == MENU_RX_CDCSS)
|
||||||
{
|
{
|
||||||
@ -1934,7 +1934,7 @@ void MENU_process_key(key_code_t Key, bool key_pressed, bool key_held)
|
|||||||
{
|
{
|
||||||
if (g_menu_cursor == MENU_VOLTAGE ||
|
if (g_menu_cursor == MENU_VOLTAGE ||
|
||||||
#ifdef ENABLE_F_CAL_MENU
|
#ifdef ENABLE_F_CAL_MENU
|
||||||
g_menu_cursor == MENU_F_CALI ||
|
g_menu_cursor == MENU_F_CALI ||
|
||||||
#endif
|
#endif
|
||||||
g_menu_cursor == MENU_BAT_CAL)
|
g_menu_cursor == MENU_BAT_CAL)
|
||||||
{
|
{
|
||||||
|
@ -2015,7 +2015,8 @@ void BK4819_PlayRogerMDC1200(void)
|
|||||||
BK4819_WriteRegister(BK4819_REG_70, // 0 0000000 1 1100000
|
BK4819_WriteRegister(BK4819_REG_70, // 0 0000000 1 1100000
|
||||||
( 0u << 15) |
|
( 0u << 15) |
|
||||||
( 0u << 8) |
|
( 0u << 8) |
|
||||||
( 1u << 7) |
|
// ( 1u << 7) |
|
||||||
|
( 0u << 7) |
|
||||||
(96u << 0));
|
(96u << 0));
|
||||||
|
|
||||||
// Set FSK data length
|
// Set FSK data length
|
||||||
|
BIN
firmware.bin
BIN
firmware.bin
Binary file not shown.
Binary file not shown.
@ -400,7 +400,9 @@ void UI_update_rssi(const int16_t rssi, const int vfo)
|
|||||||
|
|
||||||
void UI_DisplayMain(void)
|
void UI_DisplayMain(void)
|
||||||
{
|
{
|
||||||
const unsigned int smallest_char_spacing = ARRAY_SIZE(g_font3x5[0]) + 1;
|
#ifndef ENABLE_BIG_FREQ
|
||||||
|
const unsigned int smallest_char_spacing = ARRAY_SIZE(g_font3x5[0]) + 1;
|
||||||
|
#endif
|
||||||
const unsigned int line0 = 0; // text screen line
|
const unsigned int line0 = 0; // text screen line
|
||||||
const unsigned int line1 = 4;
|
const unsigned int line1 = 4;
|
||||||
char String[17];
|
char String[17];
|
||||||
|
@ -383,7 +383,7 @@ uint8_t g_menu_list_sorted[ARRAY_SIZE(g_menu_list)];
|
|||||||
|
|
||||||
bool g_is_in_sub_menu;
|
bool g_is_in_sub_menu;
|
||||||
uint8_t g_menu_cursor;
|
uint8_t g_menu_cursor;
|
||||||
int8_t g_MENU_SCRAMBLERoll_direction;
|
int8_t g_menu_scroll_direction;
|
||||||
int32_t g_sub_menu_selection;
|
int32_t g_sub_menu_selection;
|
||||||
|
|
||||||
// edit box
|
// edit box
|
||||||
|
@ -194,7 +194,7 @@ extern const char g_sub_MENU_SCRAMBLERAMBLER[11][7];
|
|||||||
extern bool g_is_in_sub_menu;
|
extern bool g_is_in_sub_menu;
|
||||||
|
|
||||||
extern uint8_t g_menu_cursor;
|
extern uint8_t g_menu_cursor;
|
||||||
extern int8_t g_MENU_SCRAMBLERoll_direction;
|
extern int8_t g_menu_scroll_direction;
|
||||||
extern int32_t g_sub_menu_selection;
|
extern int32_t g_sub_menu_selection;
|
||||||
|
|
||||||
extern char g_edit_original[17];
|
extern char g_edit_original[17];
|
||||||
|
Loading…
x
Reference in New Issue
Block a user