ESP32 HAL: Fix random pauses during prints (#16548)
This commit is contained in:
committed by
Scott Lahteine
parent
5bd66241df
commit
2b9eb4437b
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user