From a1c8f5cb045b1d9ebfb4c666f184bd2781fb76f7 Mon Sep 17 00:00:00 2001 From: Erik Bernoth Date: Tue, 18 Jun 2013 15:47:28 +0200 Subject: [PATCH] serial_io: Add confidence output to cmd() 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 --- monk_tf/serial_io.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/monk_tf/serial_io.py b/monk_tf/serial_io.py index 5cb2659..56bc92e 100644 --- a/monk_tf/serial_io.py +++ b/monk_tf/serial_io.py @@ -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):