File tree 1 file changed +1
-2
lines changed
1 file changed +1
-2
lines changed Original file line number Diff line number Diff line change @@ -1179,7 +1179,6 @@ bool HardwareTimer::isRunning()
1179
1179
*/
1180
1180
bool HardwareTimer::isRunningChannel (uint32_t channel)
1181
1181
{
1182
- int timAssociatedInputChannel;
1183
1182
int LLChannel = getLLChannel (channel);
1184
1183
int interrupt = getIT (channel);
1185
1184
bool ret;
@@ -1195,7 +1194,7 @@ bool HardwareTimer::isRunningChannel(uint32_t channel)
1195
1194
// channel is running if: timer is running, and either output channel is
1196
1195
// enabled or interrupt is set
1197
1196
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);
1199
1198
return (isRunning () && ret);
1200
1199
}
1201
1200
You can’t perform that action at this time.
0 commit comments