Retry to add CT or DC, it's short...
This commit is contained in:
2
Makefile
2
Makefile
@@ -206,7 +206,7 @@ ifeq ($(ENABLE_FEAT_F4HWN),1)
|
|||||||
VERSION_STRING_1 ?= v0.22
|
VERSION_STRING_1 ?= v0.22
|
||||||
|
|
||||||
AUTHOR_STRING_2 ?= F4HWN
|
AUTHOR_STRING_2 ?= F4HWN
|
||||||
VERSION_STRING_2 ?= v1.9
|
VERSION_STRING_2 ?= v2.0
|
||||||
|
|
||||||
AUTHOR_STRING ?= $(AUTHOR_STRING_1)+$(AUTHOR_STRING_2)
|
AUTHOR_STRING ?= $(AUTHOR_STRING_1)+$(AUTHOR_STRING_2)
|
||||||
VERSION_STRING ?= $(VERSION_STRING_2)
|
VERSION_STRING ?= $(VERSION_STRING_2)
|
||||||
|
28
ui/main.c
28
ui/main.c
@@ -1028,7 +1028,11 @@ void UI_DisplayMain(void)
|
|||||||
case MODULATION_FM: {
|
case MODULATION_FM: {
|
||||||
const FREQ_Config_t *pConfig = (mode == VFO_MODE_TX) ? vfoInfo->pTX : vfoInfo->pRX;
|
const FREQ_Config_t *pConfig = (mode == VFO_MODE_TX) ? vfoInfo->pTX : vfoInfo->pRX;
|
||||||
const unsigned int code_type = pConfig->CodeType;
|
const unsigned int code_type = pConfig->CodeType;
|
||||||
|
#ifdef ENABLE_FEAT_F4HWN
|
||||||
|
const char *code_list[] = {"", "CT", "DC", "DCR"};
|
||||||
|
#else
|
||||||
const char *code_list[] = {"", "CT", "DCS", "DCR"};
|
const char *code_list[] = {"", "CT", "DCS", "DCR"};
|
||||||
|
#endif
|
||||||
if (code_type < ARRAY_SIZE(code_list))
|
if (code_type < ARRAY_SIZE(code_list))
|
||||||
s = code_list[code_type];
|
s = code_list[code_type];
|
||||||
break;
|
break;
|
||||||
@@ -1045,8 +1049,6 @@ void UI_DisplayMain(void)
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
// No free space
|
|
||||||
/*
|
|
||||||
const FREQ_Config_t *pConfig = (mode == VFO_MODE_TX) ? vfoInfo->pTX : vfoInfo->pRX;
|
const FREQ_Config_t *pConfig = (mode == VFO_MODE_TX) ? vfoInfo->pTX : vfoInfo->pRX;
|
||||||
switch((int)pConfig->CodeType)
|
switch((int)pConfig->CodeType)
|
||||||
{
|
{
|
||||||
@@ -1059,10 +1061,8 @@ void UI_DisplayMain(void)
|
|||||||
sprintf(String, "%03o", DCS_Options[pConfig->Code]);
|
sprintf(String, "%03o", DCS_Options[pConfig->Code]);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
GUI_DisplaySmallest(s, 58, line == 0 ? 17 : 49, false, true);
|
||||||
GUI_DisplaySmallest(String, 0, line == 0 ? 17 : 49, false, true);
|
GUI_DisplaySmallest(String, 68, line == 0 ? 17 : 49, false, true);
|
||||||
*/
|
|
||||||
GUI_DisplaySmallest(s, 24, line == 0 ? 17 : 49, false, true);
|
|
||||||
}
|
}
|
||||||
#else
|
#else
|
||||||
UI_PrintStringSmallNormal(s, LCD_WIDTH + 24, 0, line + 1);
|
UI_PrintStringSmallNormal(s, LCD_WIDTH + 24, 0, line + 1);
|
||||||
@@ -1096,7 +1096,7 @@ void UI_DisplayMain(void)
|
|||||||
{
|
{
|
||||||
sprintf(String, "%s", pwr_long[i]);
|
sprintf(String, "%s", pwr_long[i]);
|
||||||
}
|
}
|
||||||
GUI_DisplaySmallest(String, 37, line == 0 ? 17 : 49, false, true);
|
GUI_DisplaySmallest(String, 24, line == 0 ? 17 : 49, false, true);
|
||||||
}
|
}
|
||||||
#else
|
#else
|
||||||
const char pwr_list[][2] = {"L","M","H"};
|
const char pwr_list[][2] = {"L","M","H"};
|
||||||
@@ -1115,7 +1115,7 @@ void UI_DisplayMain(void)
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
UI_PrintStringSmallNormal(dir_list[i], LCD_WIDTH + 58, 0, line + 1);
|
UI_PrintStringSmallNormal(dir_list[i], LCD_WIDTH + 41, 0, line + 1);
|
||||||
}
|
}
|
||||||
#else
|
#else
|
||||||
UI_PrintStringSmallNormal(dir_list[i], LCD_WIDTH + 54, 0, line + 1);
|
UI_PrintStringSmallNormal(dir_list[i], LCD_WIDTH + 54, 0, line + 1);
|
||||||
@@ -1132,7 +1132,7 @@ void UI_DisplayMain(void)
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
GUI_DisplaySmallest("R", 68, line == 0 ? 17 : 49, false, true);
|
GUI_DisplaySmallest("R", 51, line == 0 ? 17 : 49, false, true);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
#else
|
#else
|
||||||
@@ -1147,8 +1147,8 @@ void UI_DisplayMain(void)
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
const char *bandWidthNames[] = {"WIDE", "NARROW"};
|
const char *bandWidthNames[] = {"WIDE", "NAR"};
|
||||||
GUI_DisplaySmallest(bandWidthNames[vfoInfo->CHANNEL_BANDWIDTH], 76, line == 0 ? 17 : 49, false, true);
|
GUI_DisplaySmallest(bandWidthNames[vfoInfo->CHANNEL_BANDWIDTH], 91, line == 0 ? 17 : 49, false, true);
|
||||||
}
|
}
|
||||||
#else
|
#else
|
||||||
if (vfoInfo->CHANNEL_BANDWIDTH == BANDWIDTH_NARROW)
|
if (vfoInfo->CHANNEL_BANDWIDTH == BANDWIDTH_NARROW)
|
||||||
@@ -1172,7 +1172,7 @@ void UI_DisplayMain(void)
|
|||||||
{
|
{
|
||||||
if(gMonitor)
|
if(gMonitor)
|
||||||
{
|
{
|
||||||
sprintf(String, "%s", "MONIT");
|
sprintf(String, "%s", "MONI");
|
||||||
}
|
}
|
||||||
|
|
||||||
if (isMainOnly(true))
|
if (isMainOnly(true))
|
||||||
@@ -1181,7 +1181,7 @@ void UI_DisplayMain(void)
|
|||||||
{
|
{
|
||||||
sprintf(String, "SQL%d", gEeprom.SQUELCH_LEVEL);
|
sprintf(String, "SQL%d", gEeprom.SQUELCH_LEVEL);
|
||||||
}
|
}
|
||||||
UI_PrintStringSmallNormal(String, 91, 0, 2);
|
UI_PrintStringSmallNormal(String, 94, 0, 2);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
@@ -1189,7 +1189,7 @@ void UI_DisplayMain(void)
|
|||||||
{
|
{
|
||||||
sprintf(String, "SQL%d", gEeprom.SQUELCH_LEVEL);
|
sprintf(String, "SQL%d", gEeprom.SQUELCH_LEVEL);
|
||||||
}
|
}
|
||||||
GUI_DisplaySmallest(String, 106, line == 0 ? 17 : 49, false, true);
|
GUI_DisplaySmallest(String, 110, line == 0 ? 17 : 49, false, true);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
Reference in New Issue
Block a user