Skip to content

Commit

Permalink
Make port names ignore case when connecting
Browse files Browse the repository at this point in the history
  • Loading branch information
MaddyGuthridge committed Jan 17, 2024
1 parent ea41f3e commit 104bbc6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion flapi/__enable.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ def open_port(
# If the only thing after it is a number, we are free to connect to it
# It seems that something appends these numbers to each MIDI device to
# make them more unique or something
if port_name not in curr_port_name:
if port_name.lower() not in curr_port_name.lower():
continue
try:
# If this works, it's a match
Expand Down

0 comments on commit 104bbc6

Please sign in to comment.