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 <[email protected]>
  • Loading branch information
projectgus committed Feb 13, 2024
1 parent 5c34ec2 commit 4992678
Showing 1 changed file with 3 additions and 0 deletions.
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

0 comments on commit 4992678

Please sign in to comment.