Apply refactoring to xiao_nrf52 and xiao_s3

This commit is contained in:
Florent de Lamotte 2025-06-19 15:18:58 +02:00
parent 587d9d8818
commit b65b4d51eb
3 changed files with 14 additions and 63 deletions

View file

@ -47,6 +47,15 @@ class CustomSX1262 : public SX1262 {
#ifdef SX126X_RX_BOOSTED_GAIN
setRxBoostedGainMode(SX126X_RX_BOOSTED_GAIN);
#endif
#if defined(SX126X_RXEN) || defined(SX126X_TXEN)
#ifndef SX1262X_RXEN
#define SX1262X_RXEN RADIOLIB_NC
#endif
#ifndef SX1262X_TXEN
#define SX1262X_TXEN RADIOLIB_NC
#endif
setRfSwitchPins(SX126X_RXEN, SX126X_TXEN);
#endif
return true; // success
}