Retry to add CT or DC, it's short...

This commit is contained in:
Armel FAUVEAU
2024-02-19 05:32:28 +01:00
parent b8abb092eb
commit 517eebf6ae
2 changed files with 18 additions and 18 deletions

View File

@@ -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)

View File

@@ -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);
@@ -1090,13 +1090,13 @@ void UI_DisplayMain(void)
const char pwr_long[][5] = {"LOW", "MID", "HIGH"}; const char pwr_long[][5] = {"LOW", "MID", "HIGH"};
if(i == 0) if(i == 0)
{ {
sprintf(String, "%s %d", pwr_long[i], gSetting_set_low + 1); sprintf(String, "%s%d", pwr_long[i], gSetting_set_low + 1);
} }
else else
{ {
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,24 +1172,24 @@ void UI_DisplayMain(void)
{ {
if(gMonitor) if(gMonitor)
{ {
sprintf(String, "%s", "MONIT"); sprintf(String, "%s", "MONI");
} }
if (isMainOnly(true)) if (isMainOnly(true))
{ {
if(!gMonitor) if(!gMonitor)
{ {
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
{ {
if(!gMonitor) if(!gMonitor)
{ {
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