Skip to content

Commit c655dd3

Browse files
committed
mouse configuration repair
1 parent dc248db commit c655dd3

File tree

1 file changed

+6
-6
lines changed
  • Metro/Metro_RP2350_Match3/match3_game

1 file changed

+6
-6
lines changed

Metro/Metro_RP2350_Match3/match3_game/code.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -267,13 +267,13 @@
267267
)
268268
mouse_sync.append(0)
269269

270-
# detach kernel driver if needed
271-
kernel_driver_active_flags.append(device.is_kernel_driver_active(0))
272-
if device.is_kernel_driver_active(0):
273-
device.detach_kernel_driver(0)
270+
# detach kernel driver if needed
271+
kernel_driver_active_flags.append(device.is_kernel_driver_active(0))
272+
if device.is_kernel_driver_active(0):
273+
device.detach_kernel_driver(0)
274274

275-
# set the mouse configuration so it can be used
276-
device.set_configuration()
275+
# set the mouse configuration so it can be used
276+
device.set_configuration()
277277

278278
except usb.core.USBError as e:
279279
# The mouse might have glitched and may not be detected but at least we don't crash

0 commit comments

Comments
 (0)