Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Don't stop a waveform simply by calling pinMode (esp8266#4906)
Setting a pin direction would cause a waveform generator attached to it to stop. This could cause PWM to stop if pinMode() is called while running (as it was called in __analogWrite()). Remove the stopWaveform call from pinMode, the Tone, analogWrite, or Servo that initiated the waveform has responsibility for stopping it (and it does) when complete, irrespective of the pinMode. Fixes esp8266#4905
- Loading branch information