Don't save Neighbors to flash when receiving (#3519)

* Don't save Neighbors to flash when receiving

* Move `shouldSave` to `saveProtoForModule()`

---------

Co-authored-by: Ben Meadors <benmmeadors@gmail.com>
This commit is contained in:
GUVWAF
2024-03-31 08:03:29 -05:00
committed by GitHub
co-authored by GitHub Ben Meadors
parent 46a63bf293
commit a4c22321fc
2 changed files with 8 additions and 4 deletions
+3
View File
@@ -20,6 +20,9 @@ class NeighborInfoModule : public ProtobufModule<meshtastic_NeighborInfo>, priva
bool saveProtoForModule();
private:
bool shouldSave = false; // Whether we should save the neighbor info to flash
protected:
// Note: this holds our local info.
meshtastic_NeighborInfo neighborState;