Skip to content

Commit

Permalink
Tools: autotest: correct pattern match in get_parameter
Browse files Browse the repository at this point in the history
  • Loading branch information
peterbarker authored and rmackay9 committed Apr 18, 2018
1 parent 802e4c6 commit 5b03835
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Tools/autotest/common.py
Original file line number Diff line number Diff line change
Expand Up @@ -286,7 +286,7 @@ def set_parameter(self, name, value):

def get_parameter(self, name):
self.mavproxy.send("param fetch %s\n" % name)
self.mavproxy.expect("%s = (.*)" % (name,))
self.mavproxy.expect("%s = ([0-9.]*)" % (name,))
return float(self.mavproxy.match.group(1))

#################################################
Expand Down

0 comments on commit 5b03835

Please sign in to comment.