khang_91

Revision:
167:09fd17fee0f5
Parent:
160:cabd3925fe66
Child:
172:7ec44396a51b
--- a/plans/ChannelPlan_AS923.cpp	Tue Jul 17 09:45:05 2018 -0500
+++ b/plans/ChannelPlan_AS923.cpp	Fri Jul 20 11:05:53 2018 -0500
@@ -228,7 +228,8 @@
 
     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) {