We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
While studying the HardwareTimer.cpp code, I found a possible small typo. Around line 417, in this section
case TIMER_OUTPUT_COMPARE_ACTIVE: _channelOC[channel - 1].OCMode = TIM_OCMODE_ACTIVE; _channelIC[channel - 1].ICPolarity = TIMER_NOT_USED; break; case TIMER_OUTPUT_COMPARE_INACTIVE: _channelOC[channel - 1].OCMode = TIM_OCMODE_ACTIVE; _channelIC[channel - 1].ICPolarity = TIMER_NOT_USED; break;
Shouldn't under the timer inactive case, the following line read?
_channelOC[channel - 1].OCMode = TIM_OCMODE_INACTIVE;
The text was updated successfully, but these errors were encountered:
Hi @rmaia3d, You are right, thanks for reporting. I will fix it soon.
Sorry, something went wrong.
Set TIM_OCMODE_INACTIVE when mode TIMER_OUTPUT_COMPARE_INACTIVE is se…
a29be9b
…lected Fixes stm32duino#692
391e313
…lected Fixes #692
ABOSTM
Successfully merging a pull request may close this issue.
While studying the HardwareTimer.cpp code, I found a possible small typo. Around line 417, in this section
case TIMER_OUTPUT_COMPARE_ACTIVE: _channelOC[channel - 1].OCMode = TIM_OCMODE_ACTIVE; _channelIC[channel - 1].ICPolarity = TIMER_NOT_USED; break; case TIMER_OUTPUT_COMPARE_INACTIVE: _channelOC[channel - 1].OCMode = TIM_OCMODE_ACTIVE; _channelIC[channel - 1].ICPolarity = TIMER_NOT_USED; break;
Shouldn't under the timer inactive case, the following line read?
_channelOC[channel - 1].OCMode = TIM_OCMODE_INACTIVE;
The text was updated successfully, but these errors were encountered: