From 48cd81ee7c1e0d7a6e20c37ff1ea5a9b45da457d Mon Sep 17 00:00:00 2001 From: Silvano Seva Date: Thu, 4 Aug 2022 22:55:42 +0200 Subject: [PATCH] Changed to 'static' some variables inside UI module --- openrtx/src/ui/ui.c | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/openrtx/src/ui/ui.c b/openrtx/src/ui/ui.c index 8cf798ac..945e3e96 100644 --- a/openrtx/src/ui/ui.c +++ b/openrtx/src/ui/ui.c @@ -186,7 +186,7 @@ const char *authors[] = "Fred IU2NRO", }; -const char *symbols_ITU_T_E161[] = +static const char *symbols_ITU_T_E161[] = { " 0", ",.?1", @@ -202,7 +202,7 @@ const char *symbols_ITU_T_E161[] = "#" }; -const char *symbols_ITU_T_E161_callsign[] = +static const char *symbols_ITU_T_E161_callsign[] = { "0 ", "1", @@ -236,18 +236,18 @@ const color_t yellow_fab413 = {250, 180, 19, 255}; layout_t layout; state_t last_state; -ui_state_t ui_state; -bool macro_menu = false; -bool layout_ready = false; -bool redraw_needed = true; +static ui_state_t ui_state; +static bool macro_menu = false; +static bool layout_ready = false; +static bool redraw_needed = true; -bool standby = false; -long long last_event_tick = 0; +static bool standby = false; +static long long last_event_tick = 0; // UI event queue -uint8_t evQueue_rdPos; -uint8_t evQueue_wrPos; -event_t evQueue[MAX_NUM_EVENTS]; +static uint8_t evQueue_rdPos; +static uint8_t evQueue_wrPos; +static event_t evQueue[MAX_NUM_EVENTS]; layout_t _ui_calculateLayout() {