From d583fd4f0ce7254ba9a3ac66423c9acc20c9ff62 Mon Sep 17 00:00:00 2001 From: "Derek J. Clark" Date: Mon, 4 Mar 2024 10:52:02 -0800 Subject: [PATCH] fix(Platform): Remove unneccessary await. --- core/platform/handheld/asus/rog_ally_gen1.gd | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/core/platform/handheld/asus/rog_ally_gen1.gd b/core/platform/handheld/asus/rog_ally_gen1.gd index e25a208c..cf6774b6 100644 --- a/core/platform/handheld/asus/rog_ally_gen1.gd +++ b/core/platform/handheld/asus/rog_ally_gen1.gd @@ -10,11 +10,11 @@ const GAMEPAD_ADDRESS_LIST : PackedStringArray =[ ## Detects the phys_path of the gamepad. This changes depending on BIOS ## version and if some hardware is enabled. -func identify_controller_phys() -> void: +func identify_controller_phys() -> bool: # The asus-his driver needs some time to switch to gamepad mode after initializing. Hiding the # event file descriptors before this happens will cause the action to fail. Wait a moment. logger.debug("Waiting 5s for ROG Ally controller to be ready...") - await OS.delay_msec(5000) + OS.delay_msec(5000) var sysfs_devices := SysfsDevice.get_all() for sysfs_device in sysfs_devices: @@ -24,4 +24,5 @@ func identify_controller_phys() -> void: if sysfs_device.phys_path in GAMEPAD_ADDRESS_LIST: gamepad = sysfs_device logger.debug("Found gamepad device: " + sysfs_device.phys_path) - return + return true + return false