From f63d228d0b378c426e1a287626a64578dff9f0ba Mon Sep 17 00:00:00 2001 From: Kevin Walton Date: Thu, 1 Jun 2023 21:51:57 +0100 Subject: [PATCH] Bug in waitForMicroseconds prevTimingLen in V6.0.0 In Module::waitForMicroseconds if RADIOLIB_INTERRUPT_TIMING is defined the variable prevTimingLen has been incorrectly upated in v6.0.0 introducing a bug that stops compilation. Fix: renamed _prevTimingLen to prevTimingLen to match other updates --- src/Module.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Module.cpp b/src/Module.cpp index 329bdd49..3959dee8 100644 --- a/src/Module.cpp +++ b/src/Module.cpp @@ -366,7 +366,7 @@ void Module::waitForMicroseconds(uint32_t start, uint32_t len) { #if defined(RADIOLIB_INTERRUPT_TIMING) (void)start; if((this->TimerSetupCb != nullptr) && (len != this->prevTimingLen)) { - _prevTimingLen = len; + prevTimingLen = len; this->TimerSetupCb(len); } this->TimerFlag = false;