mirror of
https://github.com/LmeSzinc/AzurLaneAutoScript.git
synced 2025-01-07 08:26:55 +08:00
Fix: Installation problems
- Disable update check - Add max retry attempt to screenshot
This commit is contained in:
parent
bbcfb47fef
commit
cf719b212f
@ -101,7 +101,7 @@ enable_perspective_error_image_save = no
|
||||
device_screenshot_method = ADB
|
||||
device_control_method = uiautomator2
|
||||
combat_screenshot_interval = 1.
|
||||
enable_update_check = yes
|
||||
enable_update_check = no
|
||||
update_method = api
|
||||
update_proxy =
|
||||
github_token =
|
||||
|
@ -20,9 +20,9 @@ class EmulatorChecker(Device):
|
||||
self._screenshot_adb()
|
||||
while 1:
|
||||
t0 = time.time()
|
||||
# self._screenshot_adb()
|
||||
self._screenshot_adb()
|
||||
# self._screenshot_uiautomator2()
|
||||
self._screenshot_ascreencap()
|
||||
# self._screenshot_ascreencap()
|
||||
# self._click_adb(1270, 360)
|
||||
# self._click_uiautomator2(1270, 360)
|
||||
|
||||
|
@ -90,7 +90,7 @@ class Screenshot(Connection):
|
||||
image = Image.fromarray(image)
|
||||
return image
|
||||
|
||||
@retry(wait_fixed=5000)
|
||||
@retry(wait_fixed=5000, stop_max_attempt_number=10)
|
||||
# @timer
|
||||
def screenshot(self):
|
||||
"""
|
||||
|
Loading…
Reference in New Issue
Block a user