Skip to content

Commit 35bb795

Browse files
projectgusdpgeorge
authored andcommitted
lora-sx126x: Fix syncword setting.
Fixes issue #796. This work was funded through GitHub Sponsors. Signed-off-by: Angus Gratton <[email protected]>
1 parent 5462848 commit 35bb795

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

micropython/lora/lora-sx126x/lora/sx126x.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -386,7 +386,7 @@ def configure(self, lora_cfg):
386386
# see
387387
# https://www.thethingsnetwork.org/forum/t/should-private-lorawan-networks-use-a-different-sync-word/34496/15
388388
syncword = 0x0404 + ((syncword & 0x0F) << 4) + ((syncword & 0xF0) << 8)
389-
self._cmd(">BBH", _CMD_WRITE_REGISTER, _REG_LSYNCRH, syncword)
389+
self._cmd(">BHH", _CMD_WRITE_REGISTER, _REG_LSYNCRH, syncword)
390390

391391
if not self._configured or any(
392392
key in lora_cfg for key in ("output_power", "pa_ramp_us", "tx_ant")

0 commit comments

Comments
 (0)