File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change 11#pragma once
22
33#include < RadioLib.h>
4+ #include " MeshCore.h"
45
56#define LR1110_IRQ_HAS_PREAMBLE 0b0000000100 // 4 4 valid LoRa header received
67#define LR1110_IRQ_HEADER_VALID 0b0000010000 // 4 4 valid LoRa header received
@@ -24,10 +25,10 @@ class CustomLR1110 : public LR1110 {
2425 if (len == 0 ) {
2526 uint32_t irq = getIrqStatus ();
2627 if (irq & RADIOLIB_LR11X0_IRQ_HEADER_ERR) {
27- Serial. println ( F ( " got possible bug packet " ) );
28+ MESH_DEBUG_PRINTLN ( " LR1110: got header err, assuming shift " );
2829 this ->shiftCount += 4 ; // uint8 will loop around to 0 at 256, perfect as rx buffer is 256 bytes
2930 } else {
30- Serial. println ( F ( " got zero-length packet without header err irq" ) );
31+ MESH_DEBUG_PRINTLN ( " LR1110: got zero-length packet without header err irq" );
3132 }
3233 }
3334 return len;
You can’t perform that action at this time.
0 commit comments