]> git.tnoah.ca Git - lora-radio.git/commitdiff
Fix infinite RX detection bug
authorjacob.eva <x00010@disroot.org>
Wed, 18 Jun 2025 20:36:53 +0000 (21:36 +0100)
committerjacob.eva <x00010@disroot.org>
Wed, 18 Jun 2025 20:36:53 +0000 (21:36 +0100)
RNode_Firmware_CE.ino

index 39579b5b7f37fbc076bbdd89f2dd60055549af9d..d02da4cca4709fd631d22d23e18c95e4b6063ae5 100644 (file)
@@ -589,6 +589,12 @@ void ISR_VECT receive_callback(uint8_t index, int packet_size) {
     ready = true;
   }
 
+  #if MCU_VARIANT == MCU_NRF52
+  // Temporary fix for permanent preamble detected bug
+  // TODO: figure out how to prevent the timing issue which causes the IRQ to never be cleared
+  interface_obj[0]->getPacketValidity();
+  #endif
+
   if (ready) {
       queue_packet(selected_radio, index);
   }