Don't set DIO2 switch if TXEN is defined

This commit is contained in:
Ben Meadors
2022-11-26 08:11:32 -06:00
committed by GitHub
parent 711c748b44
commit 71c0cf9b9a

View File

@@ -70,7 +70,7 @@ bool SX126xInterface<T>::init()
#if defined(SX126X_TXEN) && (SX126X_TXEN != RADIOLIB_NC)
// lora.begin sets Dio2 as RF switch control, which is not true if we are manually controlling RX and TX
if (res == RADIOLIB_ERR_NONE)
res = lora.setDio2AsRfSwitch(true);
res = lora.setDio2AsRfSwitch(false);
#endif
#if 0