chore(radio): remove EEPROM macros and related code (#5461)
This commit is contained in:
@@ -30,9 +30,7 @@
|
||||
#include "gvars.h"
|
||||
#include "mixes.h"
|
||||
|
||||
#if defined(SDCARD_YAML)
|
||||
#include <storage/sdcard_yaml.h>
|
||||
#endif
|
||||
|
||||
#if defined(MULTIMODULE)
|
||||
#include "pulses/multi.h"
|
||||
@@ -97,9 +95,6 @@ static int luaModelSetInfo(lua_State *L)
|
||||
if (!strcmp(key, "name")) {
|
||||
const char * name = luaL_checkstring(L, -1);
|
||||
strncpy(g_model.header.name, name, sizeof(g_model.header.name));
|
||||
#if defined(EEPROM)
|
||||
memcpy(modelHeaders[g_eeGeneral.currModel].name, g_model.header.name, sizeof(g_model.header.name));
|
||||
#endif
|
||||
}
|
||||
else if (!strcmp(key, "extendedLimits")) {
|
||||
g_model.extendedLimits = lua_toboolean(L, -1);
|
||||
@@ -238,9 +233,6 @@ static int luaModelSetModule(lua_State *L)
|
||||
}
|
||||
else if (!strcmp(key, "modelId")) {
|
||||
g_model.header.modelId[idx] = luaL_checkinteger(L, -1);
|
||||
#if defined(EEPROM)
|
||||
modelHeaders[g_eeGeneral.currModel].modelId[idx] = g_model.header.modelId[idx];
|
||||
#endif
|
||||
}
|
||||
else if (!strcmp(key, "firstChannel")) {
|
||||
module.channelsStart = luaL_checkinteger(L, -1);
|
||||
|
||||
Reference in New Issue
Block a user