fix(B&W): Avoid having constants in SRAM (#2993)

fix constness to avoid having constants in data segment 
.... and thus free some precious RAM
This commit is contained in:
Raphael Coeffic
2023-01-18 20:12:35 +10:00
committed by GitHub
parent acd44516d0
commit acd95dfad4
22 changed files with 176 additions and 172 deletions
+3 -3
View File
@@ -25,7 +25,7 @@
#define CENTER
#endif
#define ISTR(x) const char* STR_##x[] = { TR_##x }
#define ISTR(x) const char* const STR_##x[] = { TR_##x }
#if defined(COLORLCD)
ISTR(FONT_SIZES);
@@ -784,8 +784,8 @@ const char STR_SPORT_UPDATE_POWER_MODE[] = TR_SPORT_UPDATE_POWER_MODE;
const char STR_TOUCH_PANEL[] = TR_TOUCH_PANEL;
const char STR_FILE_SIZE[] = TR_FILE_SIZE;
const char STR_FILE_OPEN[] = TR_FILE_OPEN;
const char* STR_TIMER_MODES[] = TR_TIMER_MODES;
const char* STR_MONTHS[] = TR_MONTHS;
const char* const STR_TIMER_MODES[] = TR_TIMER_MODES;
const char* const STR_MONTHS[] = TR_MONTHS;
const char STR_LIMITS_HEADERS_DIRECTION[] = TR_LIMITS_HEADERS_DIRECTION;
#if defined(COLORLCD)