Browse Source

Set TX power via www worked too

pull/1/head
US1GHQ 3 months ago
parent
commit
0a778fc9ac
  1. 6
      src/TTGO_T-Beam_LoRa_APRS.ino

6
src/TTGO_T-Beam_LoRa_APRS.ino

@ -354,11 +354,11 @@ void sendpacket(){
/**
* Send message as APRS LoRa packet
* @param lora_LTXPower
* @param txPower
* @param aprsFreq
* @param message
*/
void loraSend(byte lora_LTXPower, String aprsFreq, const String &message) {
void loraSend(byte txPower, String aprsFreq, const String &message) {
#ifdef TX_RX_LNA
digitalWrite(TXPIN, HIGH);
digitalWrite(RXPIN, LOW);
@ -378,7 +378,7 @@ void loraSend(byte lora_LTXPower, String aprsFreq, const String &message) {
#endif
float aprsFreq2 = aprsFreq.toFloat();
rf95.setFrequency(aprsFreq2);
rf95.setTxPower(lora_LTXPower);
rf95.setTxPower(txPower);
rf95.sendAPRS(lora_TXBUFF, messageSize);
rf95.waitPacketSent();
#ifdef TX_RX_LNA

Loading…
Cancel
Save