- add storage for ringtone

- Refactor file load and save
- fix a size error in Canned Messages
This commit is contained in:
Thomas Göttgens
2022-12-29 16:53:36 +01:00
parent 1a949b7ca6
commit 3c5710e65b
5 changed files with 81 additions and 12 deletions

View File

@@ -125,6 +125,9 @@ class NodeDB
bool factoryReset();
bool loadProto(const char *filename, size_t protoSize, size_t objSize, const pb_msgdesc_t *fields, void *dest_struct);
bool saveProto(const char *filename, size_t protoSize, const pb_msgdesc_t *fields, const void *dest_struct);
private:
/// Find a node in our DB, create an empty NodeInfo if missing
NodeInfo *getOrCreateNode(NodeNum n);