Skip to content

Possible small typo in HardwareTimer.cpp? #692

Closed
@rmaia3d

Description

@rmaia3d

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;

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions