We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents e80275d + 7bf965e commit f823b40Copy full SHA for f823b40
1 file changed
src/pymc_core/hardware/sx1262_wrapper.py
@@ -544,6 +544,11 @@ def begin(self) -> bool:
544
else:
545
logger.warning(f"Could not setup RXEN pin {self.rxen_pin}")
546
547
+ # Ensure TX/RX pins are in default state (RX mode)
548
+ if self.txen_pin != -1 or self.rxen_pin != -1:
549
+ self._control_tx_rx_pins(tx_mode=False)
550
+ logger.debug("TX/RX control pins set to RX mode")
551
+
552
# Setup LED pins if specified
553
if self.txled_pin != -1 and not self._txled_pin_setup:
554
if self._gpio_manager.setup_output_pin(self.txled_pin, initial_value=False):
0 commit comments