File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed
micropython/lora/lora-sx127x Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -416,13 +416,13 @@ def configure(self, lora_cfg):
416416 modem_config1 |= (self ._coding_rate - 4 ) << _MODEM_CONFIG1_CODING_RATE_SHIFT
417417 update_mask |= _MODEM_CONFIG1_CODING_RATE_MASK << _MODEM_CONFIG1_CODING_RATE_SHIFT
418418
419- self ._reg_update (_REG_MODEM_CONFIG1 , update_mask , modem_config1 )
420-
421419 if "implicit_header" in lora_cfg :
422420 self ._implicit_header = lora_cfg ["implicit_header" ]
423421 modem_config1 |= _flag (_MODEM_CONFIG1_IMPLICIT_HEADER_MODE_ON , self ._implicit_header )
424422 update_mask |= _MODEM_CONFIG1_IMPLICIT_HEADER_MODE_ON
425423
424+ self ._reg_update (_REG_MODEM_CONFIG1 , update_mask , modem_config1 )
425+
426426 # Update MODEM_CONFIG2, for any fields that changed
427427 modem_config2 = 0
428428 update_mask = 0
Original file line number Diff line number Diff line change 1- metadata (version = "0.1.1 " )
1+ metadata (version = "0.1.2 " )
22require ("lora" )
33package ("lora" )
You can’t perform that action at this time.
0 commit comments