Skip to content

Commit 259067d

Browse files
John DoeJohn Doe
John Doe
authored and
John Doe
committed
fix pwm
1 parent a32d5dd commit 259067d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

hardware/esp8266com/esp8266/cores/esp8266/core_esp8266_wiring_pwm.c

+2-2
Original file line numberDiff line numberDiff line change
@@ -82,8 +82,8 @@ void prep_pwm_steps(){
8282
}
8383
ETS_FRC1_INTR_DISABLE();
8484
pwm_steps_len = pwm_temp_steps_len;
85-
os_memcpy(pwm_steps, pwm_temp_steps, (pwm_temp_steps_len + 1) * 2);
86-
os_memcpy(pwm_steps_mask, pwm_temp_masks, pwm_temp_steps_len * 4);
85+
ets_memcpy(pwm_steps, pwm_temp_steps, (pwm_temp_steps_len + 1) * 2);
86+
ets_memcpy(pwm_steps_mask, pwm_temp_masks, pwm_temp_steps_len * 4);
8787
pwm_multiplier = ESP8266_CLOCK/(pwm_range * pwm_freq);
8888
ETS_FRC1_INTR_ENABLE();
8989
}

0 commit comments

Comments
 (0)