We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 897a475 commit 1d2237bCopy full SHA for 1d2237b
cores/esp8266/core_esp8266_wiring_pwm.c
@@ -103,7 +103,7 @@ void ICACHE_RAM_ATTR pwm_timer_isr(){
103
current_step = 0;
104
stepcount = 0;
105
if(pwm_mask == 0) return;
106
- T1L = (pwm_steps[current_step+1] * pwm_multiplier);
+ T1L = (pwm_steps[current_step] * pwm_multiplier);
107
TEIE |= TEIE1;
108
if(pwm_mask & 0xFFFF) GPOS = pwm_mask & 0xFFFF;
109
if(pwm_mask & 0x10000) GP16O = 1;
0 commit comments