File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
micropython/lora/lora-sx126x/lora Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -363,11 +363,11 @@ def configure(self, lora_cfg):
363363 if "preamble_len" in lora_cfg :
364364 self ._preamble_len = lora_cfg ["preamble_len" ]
365365
366- self ._invert_iq = (
366+ self ._invert_iq = [
367367 lora_cfg .get ("invert_iq_rx" , self ._invert_iq [0 ]),
368368 lora_cfg .get ("invert_iq_tx" , self ._invert_iq [1 ]),
369369 self ._invert_iq [2 ],
370- )
370+ ]
371371
372372 if "freq_khz" in lora_cfg :
373373 self ._rf_freq_hz = int (lora_cfg ["freq_khz" ] * 1000 )
@@ -449,7 +449,7 @@ def configure(self, lora_cfg):
449449 def _invert_workaround (self , enable ):
450450 # Apply workaround for DS 15.4 Optimizing the Inverted IQ Operation
451451 if self ._invert_iq [2 ] != enable :
452- val = self ._read_read (_REG_IQ_POLARITY_SETUP )
452+ val = self ._reg_read (_REG_IQ_POLARITY_SETUP )
453453 val = (val & ~ 4 ) | _flag (4 , enable )
454454 self ._reg_write (_REG_IQ_POLARITY_SETUP , val )
455455 self ._invert_iq [2 ] = enable
You can’t perform that action at this time.
0 commit comments