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):
363
363
if "preamble_len" in lora_cfg :
364
364
self ._preamble_len = lora_cfg ["preamble_len" ]
365
365
366
- self ._invert_iq = (
366
+ self ._invert_iq = [
367
367
lora_cfg .get ("invert_iq_rx" , self ._invert_iq [0 ]),
368
368
lora_cfg .get ("invert_iq_tx" , self ._invert_iq [1 ]),
369
369
self ._invert_iq [2 ],
370
- )
370
+ ]
371
371
372
372
if "freq_khz" in lora_cfg :
373
373
self ._rf_freq_hz = int (lora_cfg ["freq_khz" ] * 1000 )
@@ -449,7 +449,7 @@ def configure(self, lora_cfg):
449
449
def _invert_workaround (self , enable ):
450
450
# Apply workaround for DS 15.4 Optimizing the Inverted IQ Operation
451
451
if self ._invert_iq [2 ] != enable :
452
- val = self ._read_read (_REG_IQ_POLARITY_SETUP )
452
+ val = self ._reg_read (_REG_IQ_POLARITY_SETUP )
453
453
val = (val & ~ 4 ) | _flag (4 , enable )
454
454
self ._reg_write (_REG_IQ_POLARITY_SETUP , val )
455
455
self ._invert_iq [2 ] = enable
You can’t perform that action at this time.
0 commit comments