From e4028e7de9de6f209bb60b8646177fff5d96c554 Mon Sep 17 00:00:00 2001 From: Chieh-Wen Yang Date: Wed, 14 Jan 2015 17:04:11 +0800 Subject: [PATCH] fixed stty failed, invalid argument -f. --- ino/commands/upload.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ino/commands/upload.py b/ino/commands/upload.py index 0659e05..251823b 100644 --- a/ino/commands/upload.py +++ b/ino/commands/upload.py @@ -46,7 +46,7 @@ def discover(self): else: self.e.find_arduino_tool('avrdude', ['hardware', 'tools', 'avr', 'bin']) self.e.find_arduino_file('avrdude.conf', ['hardware', 'tools', 'avr', 'etc']) - + def run(self, args): self.discover() port = args.serial_port or self.e.guess_serial_port() @@ -62,7 +62,7 @@ def run(self, args): raise Abort("%s doesn't exist. Is Arduino connected?" % port) # send a hangup signal when the last process closes the tty - file_switch = '-f' if platform.system() == 'Darwin' else '-F' + file_switch = '-F' if platform.system() == 'Darwin' else '-f' ret = subprocess.call([self.e['stty'], file_switch, port, 'hupcl']) if ret: raise Abort("stty failed")