Skip to content

Commit 975da6c

Browse files
ABOSTMfpistm
authored andcommitted
HardwareTimer: Fix compilation warning introduced by #1550
Fixes #1557 Signed-off-by: Alexandre Bourdiol <[email protected]>
1 parent 3c192ba commit 975da6c

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

Diff for: cores/arduino/HardwareTimer.cpp

+1-2
Original file line numberDiff line numberDiff line change
@@ -1179,7 +1179,6 @@ bool HardwareTimer::isRunning()
11791179
*/
11801180
bool HardwareTimer::isRunningChannel(uint32_t channel)
11811181
{
1182-
int timAssociatedInputChannel;
11831182
int LLChannel = getLLChannel(channel);
11841183
int interrupt = getIT(channel);
11851184
bool ret;
@@ -1195,7 +1194,7 @@ bool HardwareTimer::isRunningChannel(uint32_t channel)
11951194
// channel is running if: timer is running, and either output channel is
11961195
// enabled or interrupt is set
11971196
ret = LL_TIM_CC_IsEnabledChannel(_timerObj.handle.Instance, LLChannel)
1198-
|| (__HAL_TIM_GET_IT_SOURCE(&(_timerObj.handle), interrupt) == SET);
1197+
|| (__HAL_TIM_GET_IT_SOURCE(&(_timerObj.handle), (uint32_t)interrupt) == SET);
11991198
return (isRunning() && ret);
12001199
}
12011200

0 commit comments

Comments
 (0)