1

Revision:
6:b7bbf31e06e4
Parent:
1:e79b0a55135f
Child:
7:ba81f66e56d1
diff -r ab124d3842a8 -r b7bbf31e06e4 radio_sx127x.cpp
--- a/radio_sx127x.cpp	Sun Nov 25 17:12:03 2018 -0800
+++ b/radio_sx127x.cpp	Tue Dec 04 15:22:54 2018 -0800
@@ -164,6 +164,12 @@
         radio.write_reg(REG_FSK_PAYLOADLENGTH, max);
 }
 
+void Radio::SetFixedPayloadLength(uint8_t len)
+{
+    lora.RegPayloadLength = len;
+    radio.write_reg(REG_LR_PAYLOADLENGTH, lora.RegPayloadLength);
+}
+
 const RadioEvents_t* RadioEvents;
 
 
@@ -281,12 +287,10 @@
     if (timeout == 0) {
         lora.start_rx(RF_OPMODE_RECEIVER);
     } else {
-        lora.RegIrqFlags.octet = radio.read_reg(REG_LR_IRQFLAGS);   // yyy tmp remove
         lora.start_rx(RF_OPMODE_RECEIVER_SINGLE);
     }
 
     pinEvent.txing = 0;
-
 }