From 95f5ba9635c588115a2617ed3f2f82749e33a828 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Beat=20K=C3=BCng?= Date: Mon, 24 Oct 2016 10:18:20 +0200 Subject: [PATCH] fix mavlink_shell.py: python3 compat for octal numbers --- Tools/mavlink_shell.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Tools/mavlink_shell.py b/Tools/mavlink_shell.py index fb5b68f38a..acde3e88ec 100755 --- a/Tools/mavlink_shell.py +++ b/Tools/mavlink_shell.py @@ -166,7 +166,7 @@ def main(): erase_last_n_chars(1) cur_line = cur_line[:-1] sys.stdout.write(ch) - elif ord(ch) == 033: + elif ord(ch) == 27: ch = sys.stdin.read(1) # skip one ch = sys.stdin.read(1) if ch == 'A': # arrow up