Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions libraries/CurieTimerOne/CurieTimer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -170,6 +170,8 @@ int CurieTimer::pwmStart(unsigned int outputPin, double dutyPercentage, unsigned
}

if(dutyPercentage == 100.0) {
// If PWM is already running, reset the timer and set pin to HIGH
kill();
digitalWrite(pwmPin, HIGH);
return SUCCESS;
}
Expand Down