From a27c6e8fe92ed80c07d432f3e63609f6f9106368 Mon Sep 17 00:00:00 2001 From: tuxphone <67556506+tuxphone@users.noreply.github.com> Date: Sun, 27 Sep 2020 17:41:45 +0200 Subject: [PATCH] Update main.cpp --- src/main.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/main.cpp b/src/main.cpp index 74c2236..426bf25 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -34,7 +34,8 @@ void setup() { Radio.Sleep(); memcpy(ChanSet.name, MESHTASTIC_NAME, 12); ChanSet.channel_num = hash( MESHTASTIC_NAME ) % myRegion[REGION].numChannels; // see MeshRadio.h - ChanSet.tx_power = (myRegion[REGION].powerLimit == 0) ? TX_MAX_POWER : myRegion[REGION].powerLimit ; + ChanSet.tx_power = (myRegion[REGION].powerLimit == 0) ? TX_MAX_POWER : myRegion[REGION].powerLimit; + if (ChanSet.tx_power > TX_MAX_POWER) ChanSet.tx_power = TX_MAX_POWER; ChanSet.psk = MESHTASTIC_PSK; /* FYI: "bandwidth":