Commit bde83e8
authored
Fix waveform missing edges on cycle rollover (#4945)
When the ESP cycle counter rolls over, the "now" can be smaller than the
next-edge time of a waveform generator. This would cause the edge to be
missed on that specific pin, and make it look like PWM was hung.
Use proper comparison between current time and edge time.
Fixes #4944
Also remove the "sigma-delta.c.unused" file which was replaced by a
working one some time ago.1 parent 3906ee4 commit bde83e8
File tree
2 files changed
+2
-200
lines changed- cores/esp8266
2 files changed
+2
-200
lines changedThis file was deleted.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
102 | 102 | | |
103 | 103 | | |
104 | 104 | | |
105 | | - | |
106 | | - | |
107 | | - | |
108 | | - | |
109 | | - | |
110 | | - | |
111 | | - | |
112 | 105 | | |
113 | 106 | | |
114 | 107 | | |
| |||
251 | 244 | | |
252 | 245 | | |
253 | 246 | | |
254 | | - | |
| 247 | + | |
| 248 | + | |
255 | 249 | | |
256 | 250 | | |
257 | 251 | | |
| |||
0 commit comments