From 4fa14c7eb8a95d099f95fd82244b710798fe7252 Mon Sep 17 00:00:00 2001 From: Jonathan Bennett Date: Fri, 9 Oct 2026 04:44:06 +0000 Subject: [PATCH] RX-fail probe: read the chip mode on every LR board #11983 gives both LR drivers readChipMode() unconditionally now, so the probe no longer needs the switch that used to compile it in. Co-Authored-By: Jonathan Bennett Co-Authored-By: Claude Opus 5.5 Claude-Session: https://claude.ai/code/session_01REkPVFh6kvG4AZJ5A8AtM9 --- src/mesh/LR11x0Interface.h | 4 ---- src/mesh/LR20x0Interface.h | 4 ---- 2 files changed, 8 deletions(-) diff --git a/src/mesh/LR11x0Interface.h b/src/mesh/LR11x0Interface.h index 94a6de01df..cbb0f89283 100644 --- a/src/mesh/LR11x0Interface.h +++ b/src/mesh/LR11x0Interface.h @@ -71,11 +71,7 @@ template class LR11x0Interface : public RadioLibInterface { pktType = 0xEE; typeErr = lora.getPacketType(&pktType); -#ifdef LR11X0_READ_CHIP_MODE mode = this->readChipMode(); -#else - mode = 0xEE; // not compiled in on this board -#endif irq = lora.getIrqFlags(); return true; // always report: a failed GetPacketType is the case of interest, not a reason to stay silent } diff --git a/src/mesh/LR20x0Interface.h b/src/mesh/LR20x0Interface.h index 5d952bf438..a2f9d08173 100644 --- a/src/mesh/LR20x0Interface.h +++ b/src/mesh/LR20x0Interface.h @@ -78,11 +78,7 @@ template class LR20x0Interface : public RadioLibInterface { pktType = 0xEE; typeErr = lora.getPacketType(&pktType); -#ifdef LR2021_READ_CHIP_MODE mode = this->readChipMode(); -#else - mode = 0xEE; // not compiled in on this board -#endif irq = lora.getIrqFlags(); return true; // always report: a failed GetPacketType is the case of interest, not a reason to stay silent }