Skip to content

Commit cee3e99

Browse files
committed
remove unused set_configuration command
1 parent 443647c commit cee3e99

File tree

1 file changed

+1
-3
lines changed
  • Metro/Metro_RP2350_Match3/match3_game

1 file changed

+1
-3
lines changed

Metro/Metro_RP2350_Match3/match3_game/code.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -305,9 +305,6 @@
305305

306306
detached_interfaces.append(detached)
307307

308-
# set the mouse configuration so it can be used
309-
#device.set_configuration()
310-
311308
except usb.core.USBError as e:
312309
# The mouse might have glitched and may not be detected but at least we don't crash
313310
print(e)
@@ -318,6 +315,7 @@
318315
if len(mice) >= 2:
319316
break
320317

318+
# set the mouse configuration on any detected mice so they can be used
321319
for device in mice:
322320
device.set_configuration()
323321

0 commit comments

Comments
 (0)