Skip to content

Commit 6c2bef4

Browse files
committed
tweak switch timing
1 parent 5bb4074 commit 6c2bef4

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/hhd/device/claw/base.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -383,7 +383,8 @@ def prepare(m):
383383
# realizes it woke up and switches to desktop mode.
384384
# Therefore we need to wait otherwise we race it and
385385
# end up stuck in desktop mode.
386-
time.sleep(2)
386+
if prev:
387+
time.sleep(3)
387388
logger.info("Setting controller to dinput mode.")
388389
d_vend.set_dinput_mode()
389390
prev = time.perf_counter()

0 commit comments

Comments
 (0)