Set defaults to powersaving_enabled=1 and radio_fem_rxgain=0 for fresh installs
This commit is contained in:
1 parent
fc182b7769
commit
9414de8593
4 files changed
+17
-5
No files matched your search
@@ -681,7 +681,7 @@ MyMesh::MyMesh(mesh::MainBoard &board, mesh::Radio &radio, mesh::MillisecondCloc
|
||||
_prefs.rx_boosted_gain = 1; // enabled by default;
|
||||
#endif
|
||||
#endif
|
||||
_prefs.radio_fem_rxgain = 1;
|
||||
_prefs.radio_fem_rxgain = 0; // PowerSaving and better signal
|
||||
_prefs.radio_fem_txgain = 0;
|
||||
|
||||
next_post_idx = 0;
|
||||
@@ -691,6 +691,9 @@ MyMesh::MyMesh(mesh::MainBoard &board, mesh::Radio &radio, mesh::MillisecondCloc
|
||||
_num_posted = _num_post_pushes = 0;
|
||||
|
||||
memset(default_scope.key, 0, sizeof(default_scope.key));
|
||||
|
||||
// PowerSaving defaults
|
||||
_prefs.powersaving_enabled = 1;
|
||||
}
|
||||
|
||||
void MyMesh::begin(FILESYSTEM *fs) {
|
||||
|
||||
Reference in new issue
Block a user