Skip to content

Commit

Permalink
Don't use util int_to_hex_string because it has minimum 2 digits
Browse files Browse the repository at this point in the history
  • Loading branch information
avanwinkle committed Jan 5, 2025
1 parent e884591 commit 402b810
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mpf/platforms/fast/fast_servo.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ def __init__(self, breakout_board, port, config):
self.exp_connection = breakout_board.communicator

self.base_address = breakout_board.address
self.servo_index = Util.int_to_hex_string(int(port) - 1) # Servos are 0-indexed
self.servo_index = f"{(int(port) - 1):X}" # Servos are 0-indexed hex
self.max_runtime = f"{config['max_runtime']:02X}"

self.write_config_to_servo()
Expand Down

0 comments on commit 402b810

Please sign in to comment.