mirror of
https://github.com/arendst/Tasmota.git
synced 2025-07-23 10:46:31 +00:00
Update core_esp8266_wiring_pwm.cpp
This commit is contained in:
parent
041be8882e
commit
22fec3202a
@ -53,8 +53,7 @@ extern void __analogWrite(uint8_t pin, int val) {
|
||||
if (pin > 16) {
|
||||
return;
|
||||
}
|
||||
uint32_t analogPeriod;
|
||||
{
|
||||
|
||||
uint32_t analogPeriod = microsecondsToClockCycles(1000000UL) / analogFreq;
|
||||
if (val < 0) {
|
||||
val = 0;
|
||||
|
Loading…
x
Reference in New Issue
Block a user