Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

micropython/lora: Update the implicit header option in the _SX127x. #893

Merged
merged 1 commit into from
Oct 18, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions micropython/lora/lora-sx127x/lora/sx127x.py
Original file line number Diff line number Diff line change
Expand Up @@ -416,13 +416,13 @@ def configure(self, lora_cfg):
modem_config1 |= (self._coding_rate - 4) << _MODEM_CONFIG1_CODING_RATE_SHIFT
update_mask |= _MODEM_CONFIG1_CODING_RATE_MASK << _MODEM_CONFIG1_CODING_RATE_SHIFT

self._reg_update(_REG_MODEM_CONFIG1, update_mask, modem_config1)

if "implicit_header" in lora_cfg:
self._implicit_header = lora_cfg["implicit_header"]
modem_config1 |= _flag(_MODEM_CONFIG1_IMPLICIT_HEADER_MODE_ON, self._implicit_header)
update_mask |= _MODEM_CONFIG1_IMPLICIT_HEADER_MODE_ON

self._reg_update(_REG_MODEM_CONFIG1, update_mask, modem_config1)

# Update MODEM_CONFIG2, for any fields that changed
modem_config2 = 0
update_mask = 0
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.1")
metadata(version="0.1.2")
require("lora")
package("lora")
Loading