Skip to content

Commit 8750088

Browse files
committed
Remove paranoid check.
1 parent e662f2d commit 8750088

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

cores/esp8266/core_esp8266_waveform.cpp

+3-5
Original file line numberDiff line numberDiff line change
@@ -563,11 +563,9 @@ static IRAM_ATTR void timer1Interrupt() {
563563
else {
564564
do {
565565
// Drop the pin at this edge
566-
if (pwmState.mask & (1 << pwmState.pin[pwmState.idx])) {
567-
GPOC = 1 << pwmState.pin[pwmState.idx];
568-
if (pwmState.pin[pwmState.idx] == 16) {
569-
GP16O = 0;
570-
}
566+
GPOC = 1 << pwmState.pin[pwmState.idx];
567+
if (pwmState.pin[pwmState.idx] == 16) {
568+
GP16O = 0;
571569
}
572570
pwmState.idx++;
573571
// Any other pins at this same PWM value will have delta==0, drop them too.

0 commit comments

Comments
 (0)