Skip to content

Commit 02351ab

Browse files
committed
change println to debug macro in lr1110 patch
1 parent 8426fdd commit 02351ab

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/helpers/radiolib/CustomLR1110.h

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
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;

0 commit comments

Comments
 (0)