Skip to content

Commit

Permalink
Avoid empty set constructor as default arg
Browse files Browse the repository at this point in the history
  • Loading branch information
avanwinkle committed Jan 5, 2025
1 parent 38e412b commit e884591
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions mpf/platforms/fast/fast_stepper.py
Original file line number Diff line number Diff line change
Expand Up @@ -93,9 +93,10 @@ def stop(self):

def set_home_position(self):
"""Not used."""
pass

def _send_command(self, base_command, payload=set()):
def _send_command(self, base_command, payload=None):
if not payload:
payload = []
self.exp_connection.send_and_forget(','.join([
f'{base_command}@{self.base_address}:{self.stepper_index}', *payload]))

Expand Down

0 comments on commit e884591

Please sign in to comment.