kopia lustrzana https://github.com/micropython/micropython-lib
lora-sx127x: Implement missing syncword support.
This work was funded through GitHub Sponsors. Signed-off-by: Angus Gratton <angus@redyak.com.au>pull/804/head
rodzic
ad6ab5a78c
commit
546284817a
|
@ -519,6 +519,9 @@ class _SX127x(BaseModem):
|
||||||
|
|
||||||
self._reg_update(_REG_MODEM_CONFIG3, update_mask, modem_config3)
|
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):
|
def _reg_write(self, reg, value):
|
||||||
self._cs(0)
|
self._cs(0)
|
||||||
if isinstance(value, int):
|
if isinstance(value, int):
|
||||||
|
|
|
@ -1,3 +1,3 @@
|
||||||
metadata(version="0.1.0")
|
metadata(version="0.1.1")
|
||||||
require("lora")
|
require("lora")
|
||||||
package("lora")
|
package("lora")
|
||||||
|
|
Ładowanie…
Reference in New Issue