lora rx and tx EN for 1W code cleanup
This commit is contained in:
parent
bf04282a3b
commit
7bfd94d728
|
|
@ -102,8 +102,11 @@ namespace LoRa_Utils {
|
|||
radio.setCodingRate(currentLoRaType->codingRate4);
|
||||
radio.setCRC(true);
|
||||
|
||||
#if defined(ESP32_DIY_1W_LoRa_GPS) || defined(OE5HWN_MeshCom)
|
||||
#if defined(RADIO_RXEN) && defined(RADIO_TXEN)
|
||||
radio.setRfSwitchPins(RADIO_RXEN, RADIO_TXEN);
|
||||
#endif
|
||||
|
||||
#if defined(ESP32_DIY_1W_LoRa_GPS) || defined(OE5HWN_MeshCom)
|
||||
state = radio.setOutputPower(currentLoRaType->power); // max value 20 (when 20dB in setup 30dB in output as 400M30S has Low Noise Amp)
|
||||
radio.setCurrentLimit(140); // to be validated (100 , 120, 140)?
|
||||
#endif
|
||||
|
|
|
|||
Loading…
Reference in New Issue