We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8a7fc16 commit 528bf56Copy full SHA for 528bf56
cores/arduino/HardwareTimer.cpp
@@ -1179,7 +1179,6 @@ bool HardwareTimer::isRunning()
1179
*/
1180
bool HardwareTimer::isRunningChannel(uint32_t channel)
1181
{
1182
- int timAssociatedInputChannel;
1183
int LLChannel = getLLChannel(channel);
1184
int interrupt = getIT(channel);
1185
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
// enabled or interrupt is set
1197
ret = LL_TIM_CC_IsEnabledChannel(_timerObj.handle.Instance, LLChannel)
1198
- || (__HAL_TIM_GET_IT_SOURCE(&(_timerObj.handle), interrupt) == SET);
+ || (__HAL_TIM_GET_IT_SOURCE(&(_timerObj.handle), (uint32_t)interrupt) == SET);
1199
return (isRunning() && ret);
1200
}
1201
0 commit comments