Skip to content

Commit 1d2237b

Browse files
author
Me No Dev
committed
fix pwm first step getting skipped
1 parent 897a475 commit 1d2237b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cores/esp8266/core_esp8266_wiring_pwm.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ void ICACHE_RAM_ATTR pwm_timer_isr(){
103103
current_step = 0;
104104
stepcount = 0;
105105
if(pwm_mask == 0) return;
106-
T1L = (pwm_steps[current_step+1] * pwm_multiplier);
106+
T1L = (pwm_steps[current_step] * pwm_multiplier);
107107
TEIE |= TEIE1;
108108
if(pwm_mask & 0xFFFF) GPOS = pwm_mask & 0xFFFF;
109109
if(pwm_mask & 0x10000) GP16O = 1;

0 commit comments

Comments
 (0)