Skip to content

Commit

Permalink
fix: some devices failed to initialize minitouch
Browse files Browse the repository at this point in the history
(cherry picked from commit 0926e51)
  • Loading branch information
yimelia committed Nov 23, 2020
1 parent ac08555 commit ece127b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion airtest/core/android/touch_methods/minitouch.py
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ def setup_server(self):
line = line.decode(get_std_encoding(sys.stdout))

# 识别出setup成功的log,并匹配出max_x, max_y
m = re.match("Type \w touch device .+ \((\d+)x(\d+) with \d+ contacts\) detected on .+ \(.+\)", line)
m = re.search("Type \w touch device .+ \((\d+)x(\d+) with \d+ contacts\) detected on .+ \(.+\)", line)
if m:
self.max_x, self.max_y = int(m.group(1)), int(m.group(2))
break
Expand Down

0 comments on commit ece127b

Please sign in to comment.