chore(radio): remove EEPROM macros and related code (#5461)
This commit is contained in:
@@ -25,29 +25,10 @@
|
||||
#include "translations.h"
|
||||
|
||||
#define MODEL_FILENAME_PREFIX "model"
|
||||
#if defined(SDCARD_RAW)
|
||||
#define MODEL_FILENAME_SUFFIX ".bin"
|
||||
#elif defined(SDCARD_YAML)
|
||||
#define MODEL_FILENAME_SUFFIX ".yml"
|
||||
#endif
|
||||
#define DEFAULT_MODEL_FILENAME MODEL_FILENAME_PREFIX "1" MODEL_FILENAME_SUFFIX
|
||||
#define MODEL_FILENAME_PATTERN MODEL_FILENAME_PREFIX MODEL_FILENAME_SUFFIX
|
||||
|
||||
#if !defined(STORAGE_MODELSLIST)
|
||||
extern ModelHeader modelHeaders[MAX_MODELS];
|
||||
#endif
|
||||
|
||||
// opens radio.bin or model file
|
||||
const char* openFileBin(const char* fullpath, FIL* file, uint16_t* size,
|
||||
uint8_t* version);
|
||||
|
||||
const char* writeFileBin(const char* fullpath, const uint8_t* data,
|
||||
uint16_t size, uint8_t version = EEPROM_VER);
|
||||
|
||||
// open, read, and close the file
|
||||
const char *loadFileBin(const char *fullpath, uint8_t *data,
|
||||
uint16_t maxsize, uint8_t *version);
|
||||
|
||||
// writes a complete YAML file
|
||||
struct YamlNode;
|
||||
const char* writeFileYaml(const char* path, const YamlNode* root_node, uint8_t* data, uint16_t checksum);
|
||||
@@ -62,6 +43,8 @@ const char * writeModel();
|
||||
|
||||
#if !defined(STORAGE_MODELSLIST)
|
||||
|
||||
extern ModelHeader modelHeaders[MAX_MODELS];
|
||||
|
||||
// index storage vs modelslist
|
||||
void selectModel(uint8_t idx);
|
||||
const char* loadModel(uint8_t idx, bool alarms=true);
|
||||
|
||||
Reference in New Issue
Block a user