ver1

Revision:
167:09fd17fee0f5
Parent:
157:8e9b1e84ffac
Child:
172:7ec44396a51b
--- a/plans/ChannelPlan_EU868.cpp	Tue Jul 17 09:45:05 2018 -0500
+++ b/plans/ChannelPlan_EU868.cpp	Fri Jul 20 11:05:53 2018 -0500
@@ -267,8 +267,9 @@
 
     int8_t pwr = 0;
 
-    pwr = std::min < int8_t > (GetSettings()->Session.TxPower, (max_pwr - GetSettings()->Network.AntennaGain));
-
+    pwr = std::min < int8_t > (GetSettings()->Session.TxPower, max_pwr);
+    pwr -= GetSettings()->Network.AntennaGain;
+    
     for (int i = 20; i >= 0; i--) {
         if (RADIO_POWERS[i] <= pwr) {
             pwr = i;