Skip to content

Commit

Permalink
lora-sx127x: Implement missing syncword support.
Browse files Browse the repository at this point in the history
This work was funded through GitHub Sponsors.

Signed-off-by: Angus Gratton <angus@redyak.com.au>
  • Loading branch information
projectgus authored and dpgeorge committed Feb 20, 2024
1 parent ad6ab5a commit 5462848
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions micropython/lora/lora-sx127x/lora/sx127x.py
Original file line number Diff line number Diff line change
Expand Up @@ -519,6 +519,9 @@ def configure(self, lora_cfg):

self._reg_update(_REG_MODEM_CONFIG3, update_mask, modem_config3)

if "syncword" in lora_cfg:
self._reg_write(_REG_SYNC_WORD, lora_cfg["syncword"])

def _reg_write(self, reg, value):
self._cs(0)
if isinstance(value, int):
Expand Down
2 changes: 1 addition & 1 deletion micropython/lora/lora-sx127x/manifest.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
metadata(version="0.1.0")
metadata(version="0.1.1")
require("lora")
package("lora")

0 comments on commit 5462848

Please sign in to comment.