Initialize the RadioLib receive error counter

This commit is contained in:
Amoulier committed 2026-10-28 18:56:16 -04:00
1 parent 65c6a42627
commit 33eb7434f9
1 file changed
+4 -1
+4 -1
View File
@@ -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(); }