Skip to content

Commit 5462848

Browse files
projectgusdpgeorge
authored andcommitted
lora-sx127x: Implement missing syncword support.
This work was funded through GitHub Sponsors. Signed-off-by: Angus Gratton <[email protected]>
1 parent ad6ab5a commit 5462848

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

micropython/lora/lora-sx127x/lora/sx127x.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -519,6 +519,9 @@ def configure(self, lora_cfg):
519519

520520
self._reg_update(_REG_MODEM_CONFIG3, update_mask, modem_config3)
521521

522+
if "syncword" in lora_cfg:
523+
self._reg_write(_REG_SYNC_WORD, lora_cfg["syncword"])
524+
522525
def _reg_write(self, reg, value):
523526
self._cs(0)
524527
if isinstance(value, int):
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
metadata(version="0.1.0")
1+
metadata(version="0.1.1")
22
require("lora")
33
package("lora")

0 commit comments

Comments
 (0)