chore(radio): Move const data from RAM to FLASH. (#4098)

Co-authored-by: philmoz <phil.a.mitchell@gmail.com>
This commit is contained in:
philmoz
2023-09-29 10:19:06 +02:00
committed by GitHub
co-authored by philmoz
parent 397d30d283
commit ef6316ef6c
38 changed files with 154 additions and 110 deletions
+2 -2
View File
@@ -50,7 +50,7 @@ extern LROT_TABLE(tablib);
extern LROT_TABLE(rotables_meta);
extern LROT_TABLE(base_func);
static const ROTable* _global_symbols[] = {
static const ROTable* const _global_symbols[] = {
LROT_TABLEREF(base_func),
LROT_TABLEREF(etxlib),
LROT_TABLEREF(etxdir),
@@ -61,7 +61,7 @@ static const ROTable* _global_symbols[] = {
static int _index_hook_fct(lua_State * L)
{
const ROTable** t = _global_symbols;
const ROTable* const* t = _global_symbols;
const TValue* res = luaO_nilobject;
TString* key;
+2 -2
View File
@@ -22,7 +22,7 @@
constexpr coord_t KEYBOARD_HEIGHT = 90;
NumberKeyboard * NumberKeyboard::_instance = nullptr;
static const char* number_kb_map[] = {
static const char* const number_kb_map[] = {
"<<", "-", "+", ">>", "\n",
"MIN", "DEF", "+/-", "MAX", ""
};
@@ -71,7 +71,7 @@ NumberKeyboard::NumberKeyboard() :
{
// setup custom keyboard
lv_keyboard_set_map(keyboard, LV_KEYBOARD_MODE_USER_1,
number_kb_map, number_kb_ctrl_map);
(const char**)number_kb_map, number_kb_ctrl_map);
lv_keyboard_set_mode(keyboard, LV_KEYBOARD_MODE_USER_1);
}