Skip to content

Commit 480f067

Browse files
authored
Merge branch 'meshcore-dev:dev' into dev
2 parents 2ac7f4f + 8637a74 commit 480f067

3 files changed

Lines changed: 11 additions & 1 deletion

File tree

examples/companion_radio/MyMesh.h

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -165,6 +165,12 @@ class MyMesh : public BaseChatMesh, public DataStoreHost {
165165
public:
166166
void savePrefs() { _store->savePrefs(_prefs, sensors.node_lat, sensors.node_lon); }
167167

168+
#if ENV_INCLUDE_GPS == 1
169+
void applyGpsPrefs() {
170+
sensors.setSettingValue("gps", _prefs.gps_enabled ? "1" : "0");
171+
}
172+
#endif
173+
168174
private:
169175
void writeOKFrame();
170176
void writeErrFrame(uint8_t err_code);

examples/companion_radio/main.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -213,6 +213,10 @@ void setup() {
213213

214214
sensors.begin();
215215

216+
#if ENV_INCLUDE_GPS == 1
217+
the_mesh.applyGpsPrefs();
218+
#endif
219+
216220
#ifdef DISPLAY_CLASS
217221
ui_task.begin(disp, &sensors, the_mesh.getNodePrefs()); // still want to pass this in as dependency, as prefs might be moved
218222
#endif

variants/station_g2/platformio.ini

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ build_flags =
2828
-D SX126X_DIO2_AS_RF_SWITCH=true
2929
-D SX126X_DIO3_TCXO_VOLTAGE=1.8
3030
-D SX126X_CURRENT_LIMIT=140
31-
; -D SX126X_RX_BOOSTED_GAIN=1 - DO NOT ENABLE THIS!
31+
-D SX126X_RX_BOOSTED_GAIN=0 ; Default value when 'radio.rxgain' has not been set. Must be OFF for the Station G2, see:
3232
; https://wiki.uniteng.com/en/meshtastic/station-g2#impact-of-lora-node-dense-areashigh-noise-environments-on-rf-performance
3333
-D DISPLAY_CLASS=SH1106Display
3434
build_src_filter = ${esp32_base.build_src_filter}

0 commit comments

Comments
 (0)