ver1

Revision:
182:b642f4d0c95b
Parent:
179:578d8030ba57
diff -r 220e42003ef7 -r b642f4d0c95b plans/ChannelPlan_AS923.cpp
--- a/plans/ChannelPlan_AS923.cpp	Tue Sep 18 12:29:45 2018 -0500
+++ b/plans/ChannelPlan_AS923.cpp	Fri Oct 12 10:33:08 2018 -0500
@@ -26,7 +26,7 @@
 const uint8_t ChannelPlan_AS923::AS923_MAX_PAYLOAD_SIZE_400[] = { 0, 0, 11, 53, 125, 242, 242, 242, 0, 0, 0, 0, 0, 0, 0, 0 };
 const uint8_t ChannelPlan_AS923::AS923_MAX_PAYLOAD_SIZE_REPEATER_400[] = { 0, 0, 11, 53, 125, 222, 222, 222, 0, 0, 0, 0, 0, 0, 0, 0 };
 
-const uint8_t MAX_ERP_VALUES[] = { 8, 10, 12, 13, 14, 16, 18, 20, 21, 24, 26, 27, 29, 30, 33, 36 };
+const uint8_t ChannelPlan_AS923::MAX_ERP_VALUES[] = { 8, 10, 12, 13, 14, 16, 18, 20, 21, 24, 26, 27, 29, 30, 33, 36 };
 
 ChannelPlan_AS923::ChannelPlan_AS923()
 :
@@ -944,12 +944,8 @@
 
 
 uint8_t lora::ChannelPlan_AS923::GetJoinDatarate() {
-    uint8_t dr = GetSettings()->Session.TxDatarate;
-    
     // Default join datarate is DR2:SF10BW125
-    dr = lora::DR_2;
-    
-    return dr;
+    return lora::DR_2;
 }
 
 uint8_t ChannelPlan_AS923::CalculateJoinBackoff(uint8_t size) {