From 02351abc2d5cffbd68d6c940ee8ac974ce0605b2 Mon Sep 17 00:00:00 2001 From: Woodie-07 Date: Thu, 16 Oct 2025 16:25:18 +0100 Subject: [PATCH] change println to debug macro in lr1110 patch --- src/helpers/radiolib/CustomLR1110.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/helpers/radiolib/CustomLR1110.h b/src/helpers/radiolib/CustomLR1110.h index 0d1fbccc..f723bb7f 100644 --- a/src/helpers/radiolib/CustomLR1110.h +++ b/src/helpers/radiolib/CustomLR1110.h @@ -1,6 +1,7 @@ #pragma once #include +#include "MeshCore.h" #define LR1110_IRQ_HAS_PREAMBLE 0b0000000100 // 4 4 valid LoRa header received #define LR1110_IRQ_HEADER_VALID 0b0000010000 // 4 4 valid LoRa header received @@ -24,10 +25,10 @@ class CustomLR1110 : public LR1110 { if (len == 0) { uint32_t irq = getIrqStatus(); if (irq & RADIOLIB_LR11X0_IRQ_HEADER_ERR) { - Serial.println(F("got possible bug packet")); + MESH_DEBUG_PRINTLN("LR1110: got header err, assuming shift"); this->shiftCount += 4; // uint8 will loop around to 0 at 256, perfect as rx buffer is 256 bytes } else { - Serial.println(F("got zero-length packet without header err irq")); + MESH_DEBUG_PRINTLN("LR1110: got zero-length packet without header err irq"); } } return len;