ESP32 HAL: Fix random pauses during prints (#16548)

This commit is contained in:
felixstorm
2020-01-16 12:57:14 +01:00
committed by Scott Lahteine
parent 5bd66241df
commit 2b9eb4437b
3 changed files with 43 additions and 16 deletions

View File

@@ -37,7 +37,7 @@ Servo::Servo() {
int8_t Servo::attach(const int inPin) {
if (channel >= CHANNEL_MAX_NUM) return -1;
if (pin > 0) pin = inPin;
if (inPin > 0) pin = inPin;
ledcSetup(channel, 50, 16); // channel X, 50 Hz, 16-bit depth
ledcAttachPin(pin, channel);