mirror of
https://gitee.com/sui-feng-cb/AzurLaneAutoScript1
synced 2026-03-12 02:48:23 +08:00
Fix: Connecting device over http
This commit is contained in:
@@ -87,11 +87,11 @@ class ConnectionAttr:
|
||||
self.config.Emulator_ScreenshotMethod = 'uiautomator2'
|
||||
self.config.Emulator_ControlMethod = 'uiautomator2'
|
||||
if self.is_over_http:
|
||||
if self.config.Emulator_ScreenshotMethod not in ["ADB", "uiautomator2"] \
|
||||
if self.config.Emulator_ScreenshotMethod not in ["ADB", "uiautomator2", "aScreenCap"] \
|
||||
or self.config.Emulator_ControlMethod not in ["ADB", "uiautomator2", "minitouch"]:
|
||||
logger.warning(
|
||||
f'When connecting to a device over http: {self.serial} '
|
||||
f'ScreenshotMethod can only use ["ADB", "uiautomator2"], '
|
||||
f'ScreenshotMethod can only use ["ADB", "uiautomator2", "aScreenCap"], '
|
||||
f'ControlMethod can only use ["ADB", "uiautomator2", "minitouch"]'
|
||||
)
|
||||
raise RequestHumanTakeover
|
||||
|
||||
Reference in New Issue
Block a user