Skip to content

Commit 809ff5f

Browse files
committed
Fixed motor 3 construction issue
1 parent 1d50502 commit 809ff5f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

XRPLib/encoded_motor.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ def get_default_encoded_motor(cls, index:int = 1):
2828
Encoder(1, 12, 13)
2929
)
3030
motor = cls._DEFAULT_RIGHT_MOTOR_INSTANCE
31-
elif index == 2:
31+
elif index == 3:
3232
if cls._DEFAULT_MOTOR_THREE_INSTANCE is None:
3333
cls._DEFAULT_MOTOR_THREE_INSTANCE = cls(
3434
Motor(2, 3),

0 commit comments

Comments
 (0)