Skip to content
This repository has been archived by the owner on Mar 22, 2021. It is now read-only.

Commit

Permalink
serial_io: Add confidence output to cmd()
Browse files Browse the repository at this point in the history
the command should force the user to react to outputs that don't meet the
prompt.

See GitHub Issue #60.

Signed-off-by: Erik Bernoth <erik.bernoth@gmail.com>
  • Loading branch information
erikbgithub committed Jun 18, 2013
1 parent e0ff18e commit a1c8f5c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion monk_tf/serial_io.py
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ def cmd(self, msg, prompt=None, sleep_time=.1, timeout=5, linesep="\n"):
sleep_time,
timeout
)
return self.last_output
return self.last_confidence, self.last_output


def read_until(self, end_strip, start_strip=None, sleep_time=.1, timeout=5):
Expand Down

0 comments on commit a1c8f5c

Please sign in to comment.