summaryrefslogtreecommitdiff
path: root/recipes-connectivity/lora/lora-basic-station/lora-basic-station-disable-device-mode.patch
blob: d81d041dc2e5cdf7ad0275d7fcd3d8da0f42083f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
diff --git a/src/sx1301conf.c b/src/sx1301conf.c
index bca649c..c2681a4 100644
--- a/src/sx1301conf.c
+++ b/src/sx1301conf.c
@@ -433,7 +433,10 @@ int sx1301conf_start (struct sx1301conf* sx1301conf, u4_t cca_region) {
     }
 
     LOG(MOD_RAL|INFO, "Station device: %s (PPS capture %sabled)", sx1301conf->device, sx1301conf->pps ? "en":"dis");
+
+#ifndef CFG_prod
     lgwx_device_mode = sys_deviceMode;
+#endif
     int err = lgw_start();
     if( err == LGW_HAL_SUCCESS ) {
         lgw_reg_w(LGW_GPS_EN, sx1301conf->pps ? 1 : 0);