1
0
mirror of https://github.com/esp8266/Arduino.git synced 2025-06-15 00:02:49 +03:00

Resolve "PWM-locked" / "phase-locked" waveform merge leftover in Servo lib (#7978)

Library was overlooked in "PWM-locked" / "phase-locked" waveform mode merge.
This commit is contained in:
Dirk O. Kaar
2021-04-17 22:43:02 +02:00
committed by GitHub
parent 209e467120
commit 41de4115fd
2 changed files with 1 additions and 14 deletions

View File

@ -356,7 +356,7 @@ int startWaveformClockCycles_weak(uint8_t pin, uint32_t timeHighCycles, uint32_t
(void) phaseOffsetUS;
(void) autoPwm;
if ((pin > 16) || isFlashInterfacePin(pin)) {
if ((pin > 16) || isFlashInterfacePin(pin) || (timeHighCycles == 0)) {
return false;
}
Waveform *wave = &wvfState.waveform[pin];