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 38cee2b

Browse filesBrowse files
committed
CPU clock to Timer1 ccy correction must be dynamic even when BSP is compiled for fixed CPU clock.
1 parent c3ddc59 commit 38cee2b
Copy full SHA for 38cee2b

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
@@ -442,7 +442,7 @@ static ICACHE_RAM_ATTR void timer1Interrupt() {
442442
}
443443

444444
// Do it here instead of global function to save time and because we know it's edge-IRQ
445-
if (clockCyclesPerMicrosecond() == 160) {
445+
if (CPU2X & 1) {
446446
T1L = nextTimerCcys >> 1;
447447
}
448448
else {

0 commit comments

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