File tree Expand file tree Collapse file tree 1 file changed +1
-2
lines changed Expand file tree Collapse file tree 1 file changed +1
-2
lines changed Original file line number Diff line number Diff line change @@ -1179,7 +1179,6 @@ bool HardwareTimer::isRunning()
11791179 */
11801180bool 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
You can’t perform that action at this time.
0 commit comments