From 33eb7434f973ff908927ea22ffead0845739e9b7 Mon Sep 17 00:00:00 2001 From: Amoulier <19624653+Amoulier@users.noreply.github.com> Date: Wed, 28 Oct 2026 18:56:16 -0400 Subject: [PATCH] Initialize the RadioLib receive error counter --- src/helpers/radiolib/RadioLibWrappers.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/helpers/radiolib/RadioLibWrappers.h b/src/helpers/radiolib/RadioLibWrappers.h index 77dd9311..4b842f3d 100644 --- a/src/helpers/radiolib/RadioLibWrappers.h +++ b/src/helpers/radiolib/RadioLibWrappers.h @@ -29,7 +29,10 @@ protected: virtual void doResetAGC(); public: - RadioLibWrapper(PhysicalLayer& radio, mesh::MainBoard& board) : _radio(&radio), _board(&board), _preamble_sf(0) { n_recv = n_sent = 0; } + RadioLibWrapper(PhysicalLayer& radio, mesh::MainBoard& board) + : _radio(&radio), _board(&board), _preamble_sf(0) { + n_recv = n_sent = n_recv_errors = 0; + } void begin() override; virtual void powerOff() { _radio->sleep(); }