Skip to content

Commit

Permalink
evaluate reversed immediately; otherwise get not hashable error
Browse files Browse the repository at this point in the history
  • Loading branch information
dhalbert committed Jul 5, 2018
1 parent 21dec61 commit 44f52c5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion adafruit_crickit.py
Original file line number Diff line number Diff line change
Expand Up @@ -245,7 +245,7 @@ def drive_stepper_motor(self):
@property
def feather_drive_stepper_motor(self):
"""``adafruit_motor.motor.StepperMotor`` object on Drive terminals on Crickit FeatherWing"""
return self._motor(reversed(_DRIVE_STEPPER), StepperMotor)
return self._motor(tuple(reversed(_DRIVE_STEPPER)), StepperMotor)

def _motor(self, terminals, motor_class):
device = self._devices.get(terminals, None)
Expand Down

0 comments on commit 44f52c5

Please sign in to comment.