Browse Source

fix mavlink_shell.py: python3 compat for octal numbers

sbg
Beat Küng 8 years ago committed by Lorenz Meier
parent
commit
95f5ba9635
  1. 2
      Tools/mavlink_shell.py

2
Tools/mavlink_shell.py

@ -166,7 +166,7 @@ def main(): @@ -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

Loading…
Cancel
Save