Skip to content

Commit

Permalink
Fix compiler warning on HardwareTimer.cpp
Browse files Browse the repository at this point in the history
Signed-off-by: ldursw <[email protected]>
  • Loading branch information
ldursw authored Jan 22, 2024
1 parent 1863c25 commit 28c2c35
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions libraries/SrcWrapper/src/HardwareTimer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 28c2c35

Please sign in to comment.