ver1
Diff: plans/ChannelPlan_KR920.cpp
- Revision:
- 167:09fd17fee0f5
- Parent:
- 157:8e9b1e84ffac
- Child:
- 172:7ec44396a51b
diff -r 869297b078fc -r 09fd17fee0f5 plans/ChannelPlan_KR920.cpp --- a/plans/ChannelPlan_KR920.cpp Tue Jul 17 09:45:05 2018 -0500 +++ b/plans/ChannelPlan_KR920.cpp Fri Jul 20 11:05:53 2018 -0500 @@ -220,7 +220,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) {