Skip to content

Commit cc0b467

Browse files
Don't reset pulse width on servo detach
Thanks to @Koryfon for noting it. Standard Arduino doesn't reset the Servo position on a detach, so for compatibility we shouldn't either. Fixes #3195
1 parent a435669 commit cc0b467

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

libraries/Servo/src/Servo.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,6 @@ void Servo::detach() {
117117
pio_sm_set_enabled(_pio, _smIdx, false);
118118
pio_sm_unclaim(_pio, _smIdx);
119119
_attached = false;
120-
_valueUs = DEFAULT_NEUTRAL_PULSE_WIDTH;
121120
}
122121
}
123122

0 commit comments

Comments
 (0)