mirror of
https://github.com/OneOfEleven/uv-k5-firmware-custom.git
synced 2025-04-28 14:21:25 +03:00
.
This commit is contained in:
parent
0648d7ca3d
commit
901fbbfb12
BIN
firmware.bin
BIN
firmware.bin
Binary file not shown.
Binary file not shown.
@ -245,7 +245,7 @@ void PAN_process_10ms(void)
|
|||||||
|
|
||||||
// completed a full sweep/scan, draw the panadapter on-screen
|
// completed a full sweep/scan, draw the panadapter on-screen
|
||||||
|
|
||||||
if (g_panadapter_cycles + 1)
|
if (g_panadapter_cycles + 1) // prevent wrap-a-round
|
||||||
g_panadapter_cycles++;
|
g_panadapter_cycles++;
|
||||||
|
|
||||||
PAN_update_min_max();
|
PAN_update_min_max();
|
||||||
|
@ -25,8 +25,8 @@
|
|||||||
// number of bins either side of the VFO RX frequency
|
// number of bins either side of the VFO RX frequency
|
||||||
#define PANADAPTER_BINS ((LCD_WIDTH / 2) - 1)
|
#define PANADAPTER_BINS ((LCD_WIDTH / 2) - 1)
|
||||||
|
|
||||||
#define PANADAPTER_MAX_STEP 2500
|
#define PANADAPTER_MAX_STEP 2500 // 25kHz
|
||||||
#define PANADAPTER_MIN_STEP 625
|
#define PANADAPTER_MIN_STEP 500 // 5kHz
|
||||||
|
|
||||||
extern bool g_panadapter_enabled;
|
extern bool g_panadapter_enabled;
|
||||||
extern unsigned int g_panadapter_cycles;
|
extern unsigned int g_panadapter_cycles;
|
||||||
|
14
ui/main.c
14
ui/main.c
@ -140,8 +140,8 @@ void draw_bar(uint8_t *line, const int len, const int max_width)
|
|||||||
uint8_t *p_line = g_frame_buffer[line];
|
uint8_t *p_line = g_frame_buffer[line];
|
||||||
char s[16];
|
char s[16];
|
||||||
|
|
||||||
if (now)
|
// clear the line
|
||||||
memset(p_line, 0, LCD_WIDTH);
|
memset(p_line, 0, LCD_WIDTH);
|
||||||
|
|
||||||
// TX timeout seconds
|
// TX timeout seconds
|
||||||
sprintf(s, "%3u", secs);
|
sprintf(s, "%3u", secs);
|
||||||
@ -242,8 +242,8 @@ void draw_bar(uint8_t *line, const int len, const int max_width)
|
|||||||
g_dtmf_call_state != DTMF_CALL_STATE_NONE)
|
g_dtmf_call_state != DTMF_CALL_STATE_NONE)
|
||||||
return false; // display is in use
|
return false; // display is in use
|
||||||
|
|
||||||
if (now)
|
// clear the line
|
||||||
memset(g_frame_buffer[line], 0, LCD_WIDTH);
|
memset(g_frame_buffer[line], 0, LCD_WIDTH);
|
||||||
|
|
||||||
if (rssi_dBm >= (s9_dBm + 6))
|
if (rssi_dBm >= (s9_dBm + 6))
|
||||||
{ // S9+XXdB, 1dB increment
|
{ // S9+XXdB, 1dB increment
|
||||||
@ -445,10 +445,8 @@ void big_freq(const uint32_t frequency, const unsigned int x, const unsigned int
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (now)
|
// clear our assigned screen area
|
||||||
{ // clear our assigned screen area
|
memset(g_frame_buffer[line], 0, LCD_WIDTH * 3);
|
||||||
memset(g_frame_buffer[line], 0, LCD_WIDTH * 3);
|
|
||||||
}
|
|
||||||
|
|
||||||
#ifdef ENABLE_PANADAPTER_PEAK_FREQ
|
#ifdef ENABLE_PANADAPTER_PEAK_FREQ
|
||||||
if (g_panadapter_peak_freq > 0 && g_panadapter_cycles > 0)
|
if (g_panadapter_peak_freq > 0 && g_panadapter_cycles > 0)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user