mirror of
https://github.com/OneOfEleven/uv-k5-firmware-custom.git
synced 2025-04-28 22:31:25 +03:00
panadapter update
This commit is contained in:
parent
4f5ff743ff
commit
0fb4aee4d4
BIN
firmware.bin
BIN
firmware.bin
Binary file not shown.
Binary file not shown.
@ -64,8 +64,6 @@ void PAN_process_10ms(void)
|
|||||||
g_monitor_enabled ||
|
g_monitor_enabled ||
|
||||||
g_current_function == FUNCTION_TRANSMIT ||
|
g_current_function == FUNCTION_TRANSMIT ||
|
||||||
g_current_function == FUNCTION_POWER_SAVE ||
|
g_current_function == FUNCTION_POWER_SAVE ||
|
||||||
g_current_function == FUNCTION_NEW_RECEIVE ||
|
|
||||||
g_current_function == FUNCTION_RECEIVE ||
|
|
||||||
g_current_display_screen == DISPLAY_SEARCH ||
|
g_current_display_screen == DISPLAY_SEARCH ||
|
||||||
g_css_scan_mode != CSS_SCAN_MODE_OFF ||
|
g_css_scan_mode != CSS_SCAN_MODE_OFF ||
|
||||||
g_scan_state_dir != SCAN_STATE_DIR_OFF)
|
g_scan_state_dir != SCAN_STATE_DIR_OFF)
|
||||||
|
21
ui/main.c
21
ui/main.c
@ -417,10 +417,17 @@ void big_freq(const uint32_t frequency, const unsigned int x, const unsigned int
|
|||||||
uint8_t span_rssi;
|
uint8_t span_rssi;
|
||||||
unsigned int i;
|
unsigned int i;
|
||||||
|
|
||||||
if (!g_eeprom.config.setting.panadapter || !g_pan_enabled)
|
if (!g_eeprom.config.setting.panadapter ||
|
||||||
return;
|
!g_pan_enabled ||
|
||||||
if (single_vfo < 0 || g_current_display_screen != DISPLAY_MAIN || g_monitor_enabled)
|
single_vfo < 0 ||
|
||||||
|
g_current_display_screen != DISPLAY_MAIN ||
|
||||||
|
g_current_function == FUNCTION_TRANSMIT ||
|
||||||
|
g_current_function == FUNCTION_POWER_SAVE ||
|
||||||
|
g_monitor_enabled)
|
||||||
|
{
|
||||||
return;
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
// if (g_squelch_open)
|
// if (g_squelch_open)
|
||||||
// return;
|
// return;
|
||||||
|
|
||||||
@ -478,8 +485,12 @@ void big_freq(const uint32_t frequency, const unsigned int x, const unsigned int
|
|||||||
base_line[(ARRAY_SIZE(g_panadapter_rssi) / 2) - (LCD_WIDTH * 2)] = 0xAA;
|
base_line[(ARRAY_SIZE(g_panadapter_rssi) / 2) - (LCD_WIDTH * 2)] = 0xAA;
|
||||||
|
|
||||||
// top horizontal line
|
// top horizontal line
|
||||||
for (i = 0; i < ARRAY_SIZE(g_panadapter_rssi); i += 4)
|
for (i = 0; i < PANADAPTER_BINS; i += 4)
|
||||||
base_line[i - (LCD_WIDTH * 2)] |= 1u;
|
{
|
||||||
|
const unsigned int k = PANADAPTER_BINS + 1 - (LCD_WIDTH * 2);
|
||||||
|
base_line[k - i] |= 1u;
|
||||||
|
base_line[k + i] |= 1u;
|
||||||
|
}
|
||||||
|
|
||||||
// sprintf(str, "r %3d g %3u n %3u", rssi, glitch, noise);
|
// sprintf(str, "r %3d g %3u n %3u", rssi, glitch, noise);
|
||||||
// UI_PrintStringSmall(str, 2, 0, line);
|
// UI_PrintStringSmall(str, 2, 0, line);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user