From 28c2c35cf4b901cda4d56b4179e39a0fd6d740ce Mon Sep 17 00:00:00 2001 From: ldursw <37294448+ldursw@users.noreply.github.com> Date: Mon, 22 Jan 2024 08:09:10 -0300 Subject: [PATCH 1/2] Fix compiler warning on HardwareTimer.cpp Signed-off-by: ldursw <37294448+ldursw@users.noreply.github.com> --- libraries/SrcWrapper/src/HardwareTimer.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/libraries/SrcWrapper/src/HardwareTimer.cpp b/libraries/SrcWrapper/src/HardwareTimer.cpp index f65a4f4f13..d6e526876e 100644 --- a/libraries/SrcWrapper/src/HardwareTimer.cpp +++ b/libraries/SrcWrapper/src/HardwareTimer.cpp @@ -168,6 +168,10 @@ void HardwareTimer::pause() */ void HardwareTimer::pauseChannel(uint32_t channel) { + if (channel < 1 || channel > TIMER_CHANNELS) { + return; + } + int timAssociatedInputChannel; int LLChannel = getLLChannel(channel); if (LLChannel == -1) { From 8d46e9181b76bbe2c2869a876d1c1710b8b1a70f Mon Sep 17 00:00:00 2001 From: Frederic Pillon Date: Tue, 23 Jan 2024 10:17:15 +0100 Subject: [PATCH 2/2] Update libraries/SrcWrapper/src/HardwareTimer.cpp Signed-off-by: Frederic Pillon --- libraries/SrcWrapper/src/HardwareTimer.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libraries/SrcWrapper/src/HardwareTimer.cpp b/libraries/SrcWrapper/src/HardwareTimer.cpp index d6e526876e..304b169c92 100644 --- a/libraries/SrcWrapper/src/HardwareTimer.cpp +++ b/libraries/SrcWrapper/src/HardwareTimer.cpp @@ -168,7 +168,7 @@ void HardwareTimer::pause() */ void HardwareTimer::pauseChannel(uint32_t channel) { - if (channel < 1 || channel > TIMER_CHANNELS) { + if ((channel < 1) || (channel > TIMER_CHANNELS)) { return; } pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy