소스 검색

Remove default setting, since it is handled in MyMesh

zaquaz 8 달 전
부모
커밋
6c7b5390e2
1개의 변경된 파일0개의 추가작업 그리고 5개의 파일을 삭제
  1. 0 5
      examples/companion_radio/DataStore.cpp

+ 0 - 5
examples/companion_radio/DataStore.cpp

@@ -200,11 +200,6 @@ void DataStore::loadPrefsInt(const char *filename, NodePrefs& _prefs, double& no
   File file = openRead(_fs, filename);
   if (file) {
     uint8_t pad[8];
-    
-    // Initialize defaults for any missing fields (backward compatibility)
-    memset(&_prefs, 0, sizeof(_prefs));
-    node_lat = 0.0;
-    node_lon = 0.0;
 
     file.read((uint8_t *)&_prefs.airtime_factor, sizeof(float));                           // 0
     file.read((uint8_t *)_prefs.node_name, sizeof(_prefs.node_name));                      // 4