Skip to content

Commit c4b4328

Browse files
committed
Fix the check for the new board
1 parent 2aadb8d commit c4b4328

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

XRPLib/encoded_motor.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ def get_default_encoded_motor(cls, index:int = 1):
2121
:param index: The index of the motor to get; 1 for left, 2 for right, 3 for motor 3, 4 for motor 4
2222
:type index: int
2323
"""
24-
if sys.implementation._machine == "SparkFun XRP V2 with RP2350":
24+
if "2350" in sys.implementation._machine:
2525
usePwm = True
2626
else:
2727
usePwm = False

0 commit comments

Comments
 (0)