mirror of
https://github.com/OneOfEleven/uv-k5-firmware-custom.git
synced 2025-04-28 14:21:25 +03:00
AM RX mode could possible not be being set - maybe fixed
This commit is contained in:
parent
84e174544d
commit
f8aaf47374
4
Makefile
4
Makefile
@ -8,7 +8,7 @@ ENABLE_OVERLAY := 0
|
|||||||
ENABLE_LTO := 1
|
ENABLE_LTO := 1
|
||||||
ENABLE_UART := 1
|
ENABLE_UART := 1
|
||||||
ENABLE_AIRCOPY := 0
|
ENABLE_AIRCOPY := 0
|
||||||
ENABLE_FMRADIO := 0
|
ENABLE_FMRADIO := 1
|
||||||
ENABLE_NOAA := 0
|
ENABLE_NOAA := 0
|
||||||
ENABLE_VOICE := 0
|
ENABLE_VOICE := 0
|
||||||
ENABLE_ALARM := 0
|
ENABLE_ALARM := 0
|
||||||
@ -22,7 +22,7 @@ ENABLE_F_CAL_MENU := 0
|
|||||||
ENABLE_CTCSS_TAIL_PHASE_SHIFT := 1
|
ENABLE_CTCSS_TAIL_PHASE_SHIFT := 1
|
||||||
ENABLE_MAIN_KEY_HOLD := 1
|
ENABLE_MAIN_KEY_HOLD := 1
|
||||||
ENABLE_BOOT_BEEPS := 0
|
ENABLE_BOOT_BEEPS := 0
|
||||||
ENABLE_COMPANDER := 1
|
ENABLE_COMPANDER := 0
|
||||||
ENABLE_SHOW_CHARGE_LEVEL := 1
|
ENABLE_SHOW_CHARGE_LEVEL := 1
|
||||||
ENABLE_REVERSE_BAT_SYMBOL := 1
|
ENABLE_REVERSE_BAT_SYMBOL := 1
|
||||||
ENABLE_CODE_SCAN_TIMEOUT := 0
|
ENABLE_CODE_SCAN_TIMEOUT := 0
|
||||||
|
@ -45,7 +45,7 @@ ENABLE_F_CAL_MENU := 0 enable/disable the radios hidden freque
|
|||||||
ENABLE_CTCSS_TAIL_PHASE_SHIFT := 1 standard CTCSS tail phase shift rather than QS's own 55Hz tone method
|
ENABLE_CTCSS_TAIL_PHASE_SHIFT := 1 standard CTCSS tail phase shift rather than QS's own 55Hz tone method
|
||||||
ENABLE_MAIN_KEY_HOLD := 1 initial F-key press not needed, instead just hold down keys 0-9 to access the secondary butt functions
|
ENABLE_MAIN_KEY_HOLD := 1 initial F-key press not needed, instead just hold down keys 0-9 to access the secondary butt functions
|
||||||
ENABLE_BOOT_BEEPS := 0 gives user audio feedback on volume knob position at boot-up
|
ENABLE_BOOT_BEEPS := 0 gives user audio feedback on volume knob position at boot-up
|
||||||
ENABLE_COMPANDER := 1 compander option (per channel)
|
ENABLE_COMPANDER := 0 this is broken, don't bother with it for now .. compander option (per channel)
|
||||||
ENABLE_SHOW_CHARGE_LEVEL := 0 show the charge level when the radio is on charge
|
ENABLE_SHOW_CHARGE_LEVEL := 0 show the charge level when the radio is on charge
|
||||||
ENABLE_REVERSE_BAT_SYMBOL := 1 mirror the battery symbol on the status bar (+ pole on the right)
|
ENABLE_REVERSE_BAT_SYMBOL := 1 mirror the battery symbol on the status bar (+ pole on the right)
|
||||||
ENABLE_CODE_SCAN_TIMEOUT := 0 enable/disable 32-sec CTCSS/DCS scan timeout (press exit butt instead of time-out to end scan)
|
ENABLE_CODE_SCAN_TIMEOUT := 0 enable/disable 32-sec CTCSS/DCS scan timeout (press exit butt instead of time-out to end scan)
|
||||||
|
51
app/app.c
51
app/app.c
@ -574,7 +574,7 @@ void APP_StartListening(FUNCTION_Type_t Function, const bool reset_am_fix)
|
|||||||
(gEeprom.DAC_GAIN << 0)); // AF DAC Gain (after Gain-1 and Gain-2)
|
(gEeprom.DAC_GAIN << 0)); // AF DAC Gain (after Gain-1 and Gain-2)
|
||||||
|
|
||||||
#ifdef ENABLE_VOICE
|
#ifdef ENABLE_VOICE
|
||||||
if (gVoiceWriteIndex == 0)
|
// if (gVoiceWriteIndex == 0)
|
||||||
#endif
|
#endif
|
||||||
BK4819_SetAF(gRxVfo->AM_mode ? BK4819_AF_AM : BK4819_AF_OPEN);
|
BK4819_SetAF(gRxVfo->AM_mode ? BK4819_AF_AM : BK4819_AF_OPEN);
|
||||||
|
|
||||||
@ -591,6 +591,8 @@ void APP_StartListening(FUNCTION_Type_t Function, const bool reset_am_fix)
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
gUpdateDisplay = true;
|
gUpdateDisplay = true;
|
||||||
|
|
||||||
|
gUpdateStatus = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
uint32_t APP_SetFrequencyByStep(VFO_Info_t *pInfo, int8_t Step)
|
uint32_t APP_SetFrequencyByStep(VFO_Info_t *pInfo, int8_t Step)
|
||||||
@ -1002,7 +1004,7 @@ static void APP_HandleVox(void)
|
|||||||
if (gCurrentFunction == FUNCTION_POWER_SAVE)
|
if (gCurrentFunction == FUNCTION_POWER_SAVE)
|
||||||
FUNCTION_Select(FUNCTION_FOREGROUND);
|
FUNCTION_Select(FUNCTION_FOREGROUND);
|
||||||
|
|
||||||
if (gCurrentFunction != FUNCTION_TRANSMIT)
|
if (gCurrentFunction != FUNCTION_TRANSMIT && gSerialConfigCountDown_500ms == 0)
|
||||||
{
|
{
|
||||||
gDTMF_ReplyState = DTMF_REPLY_NONE;
|
gDTMF_ReplyState = DTMF_REPLY_NONE;
|
||||||
RADIO_PrepareTX();
|
RADIO_PrepareTX();
|
||||||
@ -1021,8 +1023,8 @@ void APP_Update(void)
|
|||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
if (gCurrentFunction == FUNCTION_TRANSMIT && gTxTimeoutReached)
|
if ((gCurrentFunction == FUNCTION_TRANSMIT && gTxTimeoutReached) || gSerialConfigCountDown_500ms > 0)
|
||||||
{ // transmitter timed out
|
{ // transmitter timed out or must de-key
|
||||||
gTxTimeoutReached = false;
|
gTxTimeoutReached = false;
|
||||||
|
|
||||||
gFlagEndTransmission = true;
|
gFlagEndTransmission = true;
|
||||||
@ -1747,30 +1749,27 @@ void APP_TimeSlice500ms(void)
|
|||||||
|
|
||||||
// Skipped authentic device check
|
// Skipped authentic device check
|
||||||
|
|
||||||
|
if ((gBatteryCheckCounter & 1) == 0)
|
||||||
|
{
|
||||||
|
BOARD_ADC_GetBatteryInfo(&gBatteryVoltages[gBatteryVoltageIndex++], &gBatteryCurrent);
|
||||||
|
if (gBatteryVoltageIndex > 3)
|
||||||
|
gBatteryVoltageIndex = 0;
|
||||||
|
BATTERY_GetReadings(true);
|
||||||
|
}
|
||||||
|
|
||||||
|
// regular display updates (once every 2 sec) - if need be
|
||||||
|
if ((gBatteryCheckCounter & 3) == 0)
|
||||||
|
{
|
||||||
|
if (gChargingWithTypeC || gSetting_battery_text > 0)
|
||||||
|
gUpdateStatus = true;
|
||||||
|
#ifdef ENABLE_SHOW_CHARGE_LEVEL
|
||||||
|
if (gChargingWithTypeC)
|
||||||
|
gUpdateDisplay = true;
|
||||||
|
#endif
|
||||||
|
}
|
||||||
|
|
||||||
if (gCurrentFunction != FUNCTION_TRANSMIT)
|
if (gCurrentFunction != FUNCTION_TRANSMIT)
|
||||||
{
|
{
|
||||||
if ((gBatteryCheckCounter & 1) == 0)
|
|
||||||
{
|
|
||||||
BOARD_ADC_GetBatteryInfo(&gBatteryVoltages[gBatteryVoltageIndex++], &gBatteryCurrent);
|
|
||||||
|
|
||||||
if (gBatteryVoltageIndex > 3)
|
|
||||||
gBatteryVoltageIndex = 0;
|
|
||||||
|
|
||||||
BATTERY_GetReadings(true);
|
|
||||||
}
|
|
||||||
|
|
||||||
// regular display updates (once every 2 sec) - if need be
|
|
||||||
if ((gBatteryCheckCounter & 3) == 0)
|
|
||||||
{
|
|
||||||
if (gChargingWithTypeC || gSetting_battery_text > 0)
|
|
||||||
gUpdateStatus = true;
|
|
||||||
|
|
||||||
#ifdef ENABLE_SHOW_CHARGE_LEVEL
|
|
||||||
if (gChargingWithTypeC)
|
|
||||||
gUpdateDisplay = true;
|
|
||||||
#endif
|
|
||||||
}
|
|
||||||
|
|
||||||
if (gCurrentFunction != FUNCTION_POWER_SAVE)
|
if (gCurrentFunction != FUNCTION_POWER_SAVE)
|
||||||
updateRSSI(gEeprom.RX_CHANNEL);
|
updateRSSI(gEeprom.RX_CHANNEL);
|
||||||
|
|
||||||
|
@ -104,7 +104,7 @@ void GENERIC_Key_PTT(bool bKeyPressed)
|
|||||||
{
|
{
|
||||||
gInputBoxIndex = 0;
|
gInputBoxIndex = 0;
|
||||||
|
|
||||||
if (!bKeyPressed)
|
if (!bKeyPressed || gSerialConfigCountDown_500ms > 0)
|
||||||
{
|
{
|
||||||
//if (gScreenToDisplay == DISPLAY_MAIN)
|
//if (gScreenToDisplay == DISPLAY_MAIN)
|
||||||
{
|
{
|
||||||
|
7
audio.c
7
audio.c
@ -279,12 +279,7 @@ void AUDIO_PlayBeep(BEEP_Type_t Beep)
|
|||||||
SYSTEM_DelayMs(Delay * 10);
|
SYSTEM_DelayMs(Delay * 10);
|
||||||
|
|
||||||
if (gCurrentFunction == FUNCTION_RECEIVE || gCurrentFunction == FUNCTION_MONITOR)
|
if (gCurrentFunction == FUNCTION_RECEIVE || gCurrentFunction == FUNCTION_MONITOR)
|
||||||
{
|
BK4819_SetAF(gRxVfo->AM_mode ? BK4819_AF_AM : BK4819_AF_OPEN);
|
||||||
if (gRxVfo->AM_mode)
|
|
||||||
BK4819_SetAF(BK4819_AF_AM);
|
|
||||||
else
|
|
||||||
BK4819_SetAF(BK4819_AF_OPEN);
|
|
||||||
}
|
|
||||||
|
|
||||||
#ifdef ENABLE_FMRADIO
|
#ifdef ENABLE_FMRADIO
|
||||||
if (gFmRadioMode)
|
if (gFmRadioMode)
|
||||||
|
26
bitmaps.c
26
bitmaps.c
@ -4,7 +4,7 @@
|
|||||||
// all these images are on their right sides
|
// all these images are on their right sides
|
||||||
// turn your monitor 90-deg anti-clockwise to see the images
|
// turn your monitor 90-deg anti-clockwise to see the images
|
||||||
|
|
||||||
const uint8_t BITMAP_PowerSave[8] =
|
const uint8_t BITMAP_POWERSAVE[8] =
|
||||||
{
|
{
|
||||||
#if 0
|
#if 0
|
||||||
// "S"
|
// "S"
|
||||||
@ -29,6 +29,30 @@ const uint8_t BITMAP_PowerSave[8] =
|
|||||||
#endif
|
#endif
|
||||||
};
|
};
|
||||||
|
|
||||||
|
const uint8_t BITMAP_TX[8] =
|
||||||
|
{ // "TX"
|
||||||
|
0b00000000,
|
||||||
|
0b00000001,
|
||||||
|
0b00000001,
|
||||||
|
0b01111111,
|
||||||
|
0b00000001,
|
||||||
|
0b00000001,
|
||||||
|
0b00000000,
|
||||||
|
0b00000000
|
||||||
|
};
|
||||||
|
|
||||||
|
const uint8_t BITMAP_RX[8] =
|
||||||
|
{ // "RX"
|
||||||
|
0b00000000,
|
||||||
|
0b01111111,
|
||||||
|
0b00001001,
|
||||||
|
0b00011001,
|
||||||
|
0b01100110,
|
||||||
|
0b00000000,
|
||||||
|
0b00000000,
|
||||||
|
0b00000000
|
||||||
|
};
|
||||||
|
|
||||||
const uint8_t BITMAP_BatteryLevel[2] =
|
const uint8_t BITMAP_BatteryLevel[2] =
|
||||||
{
|
{
|
||||||
0b01011101,
|
0b01011101,
|
||||||
|
@ -4,7 +4,9 @@
|
|||||||
|
|
||||||
#include <stdint.h>
|
#include <stdint.h>
|
||||||
|
|
||||||
extern const uint8_t BITMAP_PowerSave[8];
|
extern const uint8_t BITMAP_POWERSAVE[8];
|
||||||
|
extern const uint8_t BITMAP_TX[8];
|
||||||
|
extern const uint8_t BITMAP_RX[8];
|
||||||
|
|
||||||
extern const uint8_t BITMAP_BatteryLevel[2];
|
extern const uint8_t BITMAP_BatteryLevel[2];
|
||||||
extern const uint8_t BITMAP_BatteryLevel1[17];
|
extern const uint8_t BITMAP_BatteryLevel1[17];
|
||||||
|
@ -831,14 +831,16 @@ void BK4819_SetCompander(const unsigned int mode)
|
|||||||
// mode 2 .. RX
|
// mode 2 .. RX
|
||||||
// mode 3 .. TX and RX
|
// mode 3 .. TX and RX
|
||||||
|
|
||||||
|
const uint16_t r31 = BK4819_ReadRegister(BK4819_REG_31);
|
||||||
|
|
||||||
if (mode == 0)
|
if (mode == 0)
|
||||||
{ // disable
|
{ // disable
|
||||||
BK4819_WriteRegister(BK4819_REG_31, BK4819_ReadRegister(BK4819_REG_31) & ~(1u < 3));
|
BK4819_WriteRegister(BK4819_REG_31, r31 & ~(1u < 3));
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
// enable
|
// enable
|
||||||
BK4819_WriteRegister(BK4819_REG_31, BK4819_ReadRegister(BK4819_REG_31) | (1u < 3));
|
BK4819_WriteRegister(BK4819_REG_31, r31 | (1u < 3));
|
||||||
|
|
||||||
// set the compressor ratio
|
// set the compressor ratio
|
||||||
//
|
//
|
||||||
@ -848,8 +850,17 @@ void BK4819_SetCompander(const unsigned int mode)
|
|||||||
// 10 = 2:1
|
// 10 = 2:1
|
||||||
// 11 = 4:1
|
// 11 = 4:1
|
||||||
//
|
//
|
||||||
const uint16_t compress_ratio = (mode == 1 || mode >= 3) ? 3 : 0; // 4:1
|
// REG_29 <13:7> 86 Compress (AF Tx) 0 dB point (dB)
|
||||||
BK4819_WriteRegister(BK4819_REG_29, (BK4819_ReadRegister(BK4819_REG_29) & ~(3u < 14)) | (compress_ratio < 14));
|
//
|
||||||
|
// REG_29 <6:0> 64 Compress (AF Tx) noise point (dB)
|
||||||
|
//
|
||||||
|
// const uint16_t compress_ratio = (mode == 1 || mode >= 3) ? 2 : 0; // 2:1
|
||||||
|
// const uint16_t compress_0dB = 86;
|
||||||
|
// const uint16_t compress_noise_dB = 64;
|
||||||
|
// BK4819_WriteRegister(BK4819_REG_29, // (BK4819_ReadRegister(BK4819_REG_29) & ~(3u < 14)) | (compress_ratio < 14));
|
||||||
|
// (compress_ratio < 14)
|
||||||
|
// | (compress_0dB < 7)
|
||||||
|
// | (compress_noise_dB < 0));
|
||||||
|
|
||||||
// set the expander ratio
|
// set the expander ratio
|
||||||
//
|
//
|
||||||
@ -859,8 +870,17 @@ void BK4819_SetCompander(const unsigned int mode)
|
|||||||
// 10 = 1:3
|
// 10 = 1:3
|
||||||
// 11 = 1:4
|
// 11 = 1:4
|
||||||
//
|
//
|
||||||
const uint16_t expand_ratio = (mode >= 2) ? 3 : 0; // 1:4
|
// REG_28 <13:7> 86 Expander (AF Rx) 0 dB point (dB)
|
||||||
BK4819_WriteRegister(BK4819_REG_28, (BK4819_ReadRegister(BK4819_REG_28) & ~(3u < 14)) | (expand_ratio < 14));
|
//
|
||||||
|
// REG_28 <6:0> 56 Expander (AF Rx) noise point (dB)
|
||||||
|
//
|
||||||
|
// const uint16_t expand_ratio = (mode >= 2) ? 1 : 0; // 1:2
|
||||||
|
// const uint16_t expand_0dB = 86;
|
||||||
|
// const uint16_t expand_noise_dB = 56;
|
||||||
|
// BK4819_WriteRegister(BK4819_REG_28, // (BK4819_ReadRegister(BK4819_REG_28) & ~(3u < 14)) | (expand_ratio < 14));
|
||||||
|
// (expand_ratio < 14)
|
||||||
|
// | (expand_0dB < 7)
|
||||||
|
// | (expand_noise_dB < 0));
|
||||||
}
|
}
|
||||||
|
|
||||||
void BK4819_DisableVox(void)
|
void BK4819_DisableVox(void)
|
||||||
|
BIN
firmware.bin
BIN
firmware.bin
Binary file not shown.
Binary file not shown.
@ -74,6 +74,8 @@ void FUNCTION_Init(void)
|
|||||||
#ifdef ENABLE_NOAA
|
#ifdef ENABLE_NOAA
|
||||||
gNOAACountdown_10ms = 0;
|
gNOAACountdown_10ms = 0;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
gUpdateStatus = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
void FUNCTION_Select(FUNCTION_Type_t Function)
|
void FUNCTION_Select(FUNCTION_Type_t Function)
|
||||||
@ -113,6 +115,7 @@ void FUNCTION_Select(FUNCTION_Type_t Function)
|
|||||||
if (gDTMF_CallState == DTMF_CALL_STATE_CALL_OUT || gDTMF_CallState == DTMF_CALL_STATE_RECEIVED)
|
if (gDTMF_CallState == DTMF_CALL_STATE_CALL_OUT || gDTMF_CallState == DTMF_CALL_STATE_RECEIVED)
|
||||||
gDTMF_AUTO_RESET_TIME = 1 + (gEeprom.DTMF_AUTO_RESET_TIME * 2);
|
gDTMF_AUTO_RESET_TIME = 1 + (gEeprom.DTMF_AUTO_RESET_TIME * 2);
|
||||||
|
|
||||||
|
gUpdateStatus = true;
|
||||||
return;
|
return;
|
||||||
|
|
||||||
case FUNCTION_MONITOR:
|
case FUNCTION_MONITOR:
|
||||||
@ -186,6 +189,8 @@ void FUNCTION_Select(FUNCTION_Type_t Function)
|
|||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
gUpdateStatus = true;
|
||||||
|
|
||||||
GUI_DisplayScreen();
|
GUI_DisplayScreen();
|
||||||
|
|
||||||
RADIO_SetTxParameters();
|
RADIO_SetTxParameters();
|
||||||
|
6
radio.c
6
radio.c
@ -626,7 +626,7 @@ void RADIO_SetupRegisters(bool bSwitchToFunction0)
|
|||||||
#endif
|
#endif
|
||||||
{
|
{
|
||||||
if (gRxVfo->AM_mode == 0)
|
if (gRxVfo->AM_mode == 0)
|
||||||
{
|
{ // FM
|
||||||
uint8_t CodeType = gSelectedCodeType;
|
uint8_t CodeType = gSelectedCodeType;
|
||||||
uint8_t Code = gSelectedCode;
|
uint8_t Code = gSelectedCode;
|
||||||
if (gCssScanMode == CSS_SCAN_MODE_OFF)
|
if (gCssScanMode == CSS_SCAN_MODE_OFF)
|
||||||
@ -939,8 +939,8 @@ void RADIO_PrepareTX(void)
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
#endif
|
#endif
|
||||||
if (!gSetting_TX_EN)
|
if (!gSetting_TX_EN || gSerialConfigCountDown_500ms > 0)
|
||||||
{ // TX is disabled
|
{ // TX is disabled or config upload/download in progress
|
||||||
State = VFO_STATE_TX_DISABLE;
|
State = VFO_STATE_TX_DISABLE;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
33
ui/main.c
33
ui/main.c
@ -335,7 +335,7 @@ void UI_DisplayMain(void)
|
|||||||
const bool same_vfo = (channel == vfo_num) ? true : false;
|
const bool same_vfo = (channel == vfo_num) ? true : false;
|
||||||
uint8_t *p_line0 = gFrameBuffer[line + 0];
|
uint8_t *p_line0 = gFrameBuffer[line + 0];
|
||||||
uint8_t *p_line1 = gFrameBuffer[line + 1];
|
uint8_t *p_line1 = gFrameBuffer[line + 1];
|
||||||
uint32_t duff_beer = 0;
|
uint8_t mode = 0;
|
||||||
uint8_t state;
|
uint8_t state;
|
||||||
|
|
||||||
if (single_vfo)
|
if (single_vfo)
|
||||||
@ -422,23 +422,36 @@ void UI_DisplayMain(void)
|
|||||||
|
|
||||||
#ifdef ENABLE_ALARM
|
#ifdef ENABLE_ALARM
|
||||||
if (gAlarmState == ALARM_STATE_ALARM)
|
if (gAlarmState == ALARM_STATE_ALARM)
|
||||||
duff_beer = 2;
|
mode = 2;
|
||||||
else
|
else
|
||||||
#endif
|
#endif
|
||||||
{
|
{
|
||||||
channel = (gEeprom.CROSS_BAND_RX_TX == CROSS_BAND_OFF) ? gEeprom.RX_CHANNEL : gEeprom.TX_CHANNEL;
|
channel = (gEeprom.CROSS_BAND_RX_TX == CROSS_BAND_OFF) ? gEeprom.RX_CHANNEL : gEeprom.TX_CHANNEL;
|
||||||
if (channel == vfo_num)
|
if (channel == vfo_num)
|
||||||
{ // show the TX symbol
|
{ // show the TX symbol
|
||||||
duff_beer = 1;
|
mode = 1;
|
||||||
UI_PrintStringSmall("TX", 14, 0, line);
|
#ifdef ENABLE_SMALL_BOLD
|
||||||
|
UI_PrintStringSmallBold("TX", 14, 0, line);
|
||||||
|
#else
|
||||||
|
UI_PrintStringSmall("TX", 14, 0, line);
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{ // receiving .. show the RX symbol
|
{ // receiving .. show the RX symbol
|
||||||
duff_beer = 2;
|
mode = 2;
|
||||||
if ((gCurrentFunction == FUNCTION_RECEIVE || gCurrentFunction == FUNCTION_MONITOR) && gEeprom.RX_CHANNEL == vfo_num)
|
if ((gCurrentFunction == FUNCTION_RECEIVE ||
|
||||||
UI_PrintStringSmall("RX", 14, 0, line);
|
gCurrentFunction == FUNCTION_MONITOR ||
|
||||||
|
gCurrentFunction == FUNCTION_INCOMING) &&
|
||||||
|
gEeprom.RX_CHANNEL == vfo_num)
|
||||||
|
{
|
||||||
|
#ifdef ENABLE_SMALL_BOLD
|
||||||
|
UI_PrintStringSmallBold("RX", 14, 0, line);
|
||||||
|
#else
|
||||||
|
UI_PrintStringSmall("RX", 14, 0, line);
|
||||||
|
#endif
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (IS_MR_CHANNEL(gEeprom.ScreenChannel[vfo_num]))
|
if (IS_MR_CHANNEL(gEeprom.ScreenChannel[vfo_num]))
|
||||||
@ -610,7 +623,7 @@ void UI_DisplayMain(void)
|
|||||||
{ // show the TX/RX level
|
{ // show the TX/RX level
|
||||||
uint8_t Level = 0;
|
uint8_t Level = 0;
|
||||||
|
|
||||||
if (duff_beer == 1)
|
if (mode == 1)
|
||||||
{ // TX power level
|
{ // TX power level
|
||||||
switch (gRxVfo->OUTPUT_POWER)
|
switch (gRxVfo->OUTPUT_POWER)
|
||||||
{
|
{
|
||||||
@ -620,7 +633,7 @@ void UI_DisplayMain(void)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
if (duff_beer == 2)
|
if (mode == 2)
|
||||||
{ // RX signal level
|
{ // RX signal level
|
||||||
#ifndef ENABLE_RSSI_BAR
|
#ifndef ENABLE_RSSI_BAR
|
||||||
// bar graph
|
// bar graph
|
||||||
@ -657,7 +670,7 @@ void UI_DisplayMain(void)
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{ // or show the CTCSS/DCS symbol
|
{ // or show the CTCSS/DCS symbol
|
||||||
const FREQ_Config_t *pConfig = (duff_beer == 1) ? gEeprom.VfoInfo[vfo_num].pTX : gEeprom.VfoInfo[vfo_num].pRX;
|
const FREQ_Config_t *pConfig = (mode == 1) ? gEeprom.VfoInfo[vfo_num].pTX : gEeprom.VfoInfo[vfo_num].pRX;
|
||||||
const unsigned int code_type = pConfig->CodeType;
|
const unsigned int code_type = pConfig->CodeType;
|
||||||
const char *code_list[] = {"", "CT", "DCS", "DCR"};
|
const char *code_list[] = {"", "CT", "DCS", "DCR"};
|
||||||
if (code_type >= 0 && code_type < ARRAY_SIZE(code_list))
|
if (code_type >= 0 && code_type < ARRAY_SIZE(code_list))
|
||||||
|
20
ui/status.c
20
ui/status.c
@ -45,12 +45,26 @@ void UI_DisplayStatus(const bool test_display)
|
|||||||
// **************
|
// **************
|
||||||
|
|
||||||
// POWER-SAVE indicator
|
// POWER-SAVE indicator
|
||||||
|
if (gCurrentFunction == FUNCTION_TRANSMIT)
|
||||||
|
{
|
||||||
|
memmove(line + x, BITMAP_TX, sizeof(BITMAP_TX));
|
||||||
|
x1 = x + sizeof(BITMAP_TX);
|
||||||
|
}
|
||||||
|
else
|
||||||
|
if (gCurrentFunction == FUNCTION_RECEIVE ||
|
||||||
|
gCurrentFunction == FUNCTION_MONITOR ||
|
||||||
|
gCurrentFunction == FUNCTION_INCOMING)
|
||||||
|
{
|
||||||
|
memmove(line + x, BITMAP_RX, sizeof(BITMAP_RX));
|
||||||
|
x1 = x + sizeof(BITMAP_RX);
|
||||||
|
}
|
||||||
|
else
|
||||||
if (gCurrentFunction == FUNCTION_POWER_SAVE || test_display)
|
if (gCurrentFunction == FUNCTION_POWER_SAVE || test_display)
|
||||||
{
|
{
|
||||||
memmove(line + x, BITMAP_PowerSave, sizeof(BITMAP_PowerSave));
|
memmove(line + x, BITMAP_POWERSAVE, sizeof(BITMAP_POWERSAVE));
|
||||||
x1 = x + sizeof(BITMAP_PowerSave);
|
x1 = x + sizeof(BITMAP_POWERSAVE);
|
||||||
}
|
}
|
||||||
x += sizeof(BITMAP_PowerSave);
|
x += sizeof(BITMAP_POWERSAVE);
|
||||||
|
|
||||||
#ifdef ENABLE_NOAA
|
#ifdef ENABLE_NOAA
|
||||||
// NOASS SCAN indicator
|
// NOASS SCAN indicator
|
||||||
|
Loading…
x
Reference in New Issue
Block a user