summaryrefslogtreecommitdiff
path: root/recipes-connectivity/lora/lora-basic-station/lora-basic-station-disable-device-mode.patch
diff options
context:
space:
mode:
authorJason Reiss <jreiss@multitech.com>2020-03-12 12:41:38 -0500
committerJohn Klug <john.klug@multitech.com>2020-06-18 20:22:07 -0500
commita3020c1257ad6bd653b5c619f1552b5e22fe7e0c (patch)
tree24f149cc19a84d2bf92164ebd5397efac8c5ce15 /recipes-connectivity/lora/lora-basic-station/lora-basic-station-disable-device-mode.patch
parent9ac778701169bc5110d5a011198366d13e3fed2b (diff)
downloadmeta-mlinux-a3020c1257ad6bd653b5c619f1552b5e22fe7e0c.tar.gz
meta-mlinux-a3020c1257ad6bd653b5c619f1552b5e22fe7e0c.tar.bz2
meta-mlinux-a3020c1257ad6bd653b5c619f1552b5e22fe7e0c.zip
lora: add MTCAP2 global_conf files, adjust init scripts to detect MTCAP2
Diffstat (limited to 'recipes-connectivity/lora/lora-basic-station/lora-basic-station-disable-device-mode.patch')
-rw-r--r--recipes-connectivity/lora/lora-basic-station/lora-basic-station-disable-device-mode.patch15
1 files changed, 15 insertions, 0 deletions
diff --git a/recipes-connectivity/lora/lora-basic-station/lora-basic-station-disable-device-mode.patch b/recipes-connectivity/lora/lora-basic-station/lora-basic-station-disable-device-mode.patch
new file mode 100644
index 0000000..d81d041
--- /dev/null
+++ b/recipes-connectivity/lora/lora-basic-station/lora-basic-station-disable-device-mode.patch
@@ -0,0 +1,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);