123

Revision:
6:5d94ee847016
Parent:
4:d987ac2836bf
--- a/sx127x_lora.cpp	Tue Jun 03 20:44:30 2014 +0000
+++ b/sx127x_lora.cpp	Mon Jun 30 17:05:12 2014 +0000
@@ -312,10 +312,7 @@
     // write PayloadLength bytes to fifo
     write_fifo(len);
 
-    if (m_xcvr.HF)
-        m_xcvr.femctx = 1;
-    else
-        m_xcvr.femcps = 0;
+
         
     // radio doesnt provide FhssChangeChannel with channel=0 for TX    
     if (RegHopPeriod > 0)
@@ -329,10 +326,7 @@
     if (!m_xcvr.RegOpMode.bits.LongRangeMode)
         return;
 
-    if (m_xcvr.HF)
-        m_xcvr.femctx = 0;
-    else
-        m_xcvr.femcps = 1;
+
         
     if (m_xcvr.RegDioMapping1.bits.Dio0Mapping != 0) {
         m_xcvr.RegDioMapping1.bits.Dio0Mapping = 0;    // DIO0 to RxDone
@@ -408,11 +402,6 @@
             read_fifo(RegRxNbBytes);
             return SERVICE_READ_FIFO;
         case 1: // TxDone
-            if (m_xcvr.HF)
-                m_xcvr.femctx = 0;
-            else
-                m_xcvr.femcps = 1;
-
             RegIrqFlags.octet = 0;
             RegIrqFlags.bits.TxDone = 1;
             m_xcvr.write_reg(REG_LR_IRQFLAGS, RegIrqFlags.octet);