mirror of https://github.com/arendst/Tasmota.git
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…
Reference in New Issue