* repeater and room server: CommonCLI now handles load/save of Prefs. Now sanitise bad prefs values.

This commit is contained in:
Scott Powell committed 2025-03-05 16:39:45 +11:00
1 parent 2719e5195a
commit cb2211e1ca
4 files changed
+90 -34

No files matched your search

+3
View File
@@ -1,6 +1,7 @@
#pragma once
#include "Mesh.h"
#include <helpers/IdentityStore.h>
struct NodePrefs { // persisted to file
float airtime_factor;
@@ -54,5 +55,7 @@ public:
CommonCLI(mesh::MainBoard& board, mesh::Mesh* mesh, NodePrefs* prefs, CommonCLICallbacks* callbacks)
: _board(&board), _mesh(mesh), _prefs(prefs), _callbacks(callbacks) { }
void loadPrefs(FILESYSTEM* _fs);
void savePrefs(FILESYSTEM* _fs);
void handleCommand(uint32_t sender_timestamp, const char* command, char* reply);
};