Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 4b7964f

Browse filesBrowse files
committed
Off-by-one in 100% duty overshoot correction.
1 parent 566c13a commit 4b7964f
Copy full SHA for 4b7964f

File tree

Expand file treeCollapse file tree

1 file changed

+1
-1
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+1
-1
lines changed

‎cores/esp8266/core_esp8266_waveform.cpp

Copy file name to clipboardExpand all lines: cores/esp8266/core_esp8266_waveform.cpp
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -341,7 +341,7 @@ static ICACHE_RAM_ATTR void timer1Interrupt() {
341341
const bool endOfPeriod = wave.nextPeriodCcy == wave.endDutyCcy;
342342
// active configuration and forward 100% duty
343343
if (!idleCcys) {
344-
wave.nextPeriodCcy += fwdPeriodCcys + wave.periodCcys;
344+
wave.nextPeriodCcy += fwdPeriodCcys;
345345
wave.endDutyCcy = wave.nextPeriodCcy;
346346
nextEdgeCcy = wave.nextPeriodCcy;
347347
}

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.