Skip to content

Commit a7c277b

Browse files
committed
esp32: fix 4.x pin detach argument
1 parent bc04784 commit a7c277b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/esp32/Servo.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ class ServoImpl {
4848

4949
~ServoImpl() {
5050
#if ESP_IDF_VERSION_MAJOR < 5
51-
ledcDetachPin(channel);
51+
ledcDetachPin(pin);
5252
#else
5353
ledcDetach(pin);
5454
#endif

0 commit comments

Comments
 (0)