Merge pull request #3715 from Amoulier/fix/radiolib-rx-error-counter

Initialize the RadioLib receive error counter
This commit is contained in:
ripplebiz authored and GitHub committed 2026-11-01 13:19:47 +11:00
commit 5533c24fde
1 file changed
+4 -1
+4 -1
View File
@@ -30,7 +30,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(); }