Skip to content

Commit 6c7b539

Browse files
author
zaquaz
committed
Remove default setting, since it is handled in MyMesh
1 parent 2bd47de commit 6c7b539

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

examples/companion_radio/DataStore.cpp

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -200,11 +200,6 @@ void DataStore::loadPrefsInt(const char *filename, NodePrefs& _prefs, double& no
200200
File file = openRead(_fs, filename);
201201
if (file) {
202202
uint8_t pad[8];
203-
204-
// Initialize defaults for any missing fields (backward compatibility)
205-
memset(&_prefs, 0, sizeof(_prefs));
206-
node_lat = 0.0;
207-
node_lon = 0.0;
208203

209204
file.read((uint8_t *)&_prefs.airtime_factor, sizeof(float)); // 0
210205
file.read((uint8_t *)_prefs.node_name, sizeof(_prefs.node_name)); // 4

0 commit comments

Comments
 (0)