Skip to content

Commit

Permalink
menu: use const char* const
Browse files Browse the repository at this point in the history
  • Loading branch information
wutje committed Dec 29, 2023
1 parent f027ebb commit 36ee310
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
8 changes: 4 additions & 4 deletions ui/menu.c
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,7 @@ const char gSubMenu_TOT[][7] =
"15 min"
};

const char* gSubMenu_RXMode[] =
const char* const gSubMenu_RXMode[] =
{
"MAIN\nONLY", // TX and RX on main only
"DUAL RX\nRESPOND", // Watch both and respond
Expand All @@ -218,7 +218,7 @@ const char gSubMenu_SC_REV[][8] =
"STOP"
};

const char* gSubMenu_MDF[] =
const char* const gSubMenu_MDF[] =
{
"FREQ",
"CHANNEL\nNUMBER",
Expand All @@ -244,7 +244,7 @@ const char gSubMenu_D_RSP[][11] =
};
#endif

const char* gSubMenu_PTT_ID[] =
const char* const gSubMenu_PTT_ID[] =
{
"OFF",
"UP CODE",
Expand Down Expand Up @@ -274,7 +274,7 @@ const char gSubMenu_RESET[][4] =
"ALL"
};

const char * gSubMenu_F_LOCK[] =
const char * const gSubMenu_F_LOCK[] =
{
"DEFAULT+\n137-174\n400-470",
"FCC HAM\n144-148\n420-450",
Expand Down
8 changes: 4 additions & 4 deletions ui/menu.h
Original file line number Diff line number Diff line change
Expand Up @@ -135,24 +135,24 @@ extern const char gSubMenu_W_N[2][7];
extern const char gSubMenu_OFF_ON[2][4];
extern const char gSubMenu_SAVE[5][4];
extern const char gSubMenu_TOT[11][7];
extern const char* gSubMenu_RXMode[4];
extern const char* const gSubMenu_RXMode[4];

#ifdef ENABLE_VOICE
extern const char gSubMenu_VOICE[3][4];
#endif
extern const char gSubMenu_SC_REV[3][8];
extern const char* gSubMenu_MDF[4];
extern const char* const gSubMenu_MDF[4];
#ifdef ENABLE_ALARM
extern const char gSubMenu_AL_MOD[2][5];
#endif
#ifdef ENABLE_DTMF_CALLING
extern const char gSubMenu_D_RSP[4][11];
#endif
extern const char* gSubMenu_PTT_ID[5];
extern const char* const gSubMenu_PTT_ID[5];
extern const char gSubMenu_PONMSG[4][8];
extern const char gSubMenu_ROGER[3][6];
extern const char gSubMenu_RESET[2][4];
extern const char* gSubMenu_F_LOCK[F_LOCK_LEN];
extern const char* const gSubMenu_F_LOCK[F_LOCK_LEN];
extern const char gSubMenu_BACKLIGHT[8][7];
extern const char gSubMenu_RX_TX[4][6];
extern const char gSubMenu_BAT_TXT[3][8];
Expand Down

0 comments on commit 36ee310

Please sign in to comment.