1
0
mirror of https://gitee.com/sui-feng-cb/AzurLaneAutoScript1 synced 2026-03-12 01:38:21 +08:00

Opt: Serial in ADB commands now optional

This commit is contained in:
LmeSzinc
2020-09-03 21:19:43 +08:00
parent ffa36b0fc2
commit 5b38d82f06
5 changed files with 15 additions and 11 deletions

View File

@@ -46,7 +46,7 @@ class Screenshot(AScreenCap):
return screenshot
def _screenshot_adb(self):
screenshot = self.adb_shell(['screencap', '-p'], serial=self.serial)
screenshot = self.adb_shell(['screencap', '-p'])
return self._process_screenshot(screenshot)
@retry(wait_fixed=5000, stop_max_attempt_number=10)