diff options
Diffstat (limited to 'bootloader')
-rwxr-xr-x | bootloader/downloader.py | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/bootloader/downloader.py b/bootloader/downloader.py index bbb6d13..463e49c 100755 --- a/bootloader/downloader.py +++ b/bootloader/downloader.py @@ -30,6 +30,7 @@ VERSION_MIN = 1 def load_hex(file): from ihexpic import IHexPic + import os fin = file if fin == '-': @@ -85,9 +86,6 @@ def create_flash_segments(hexdata, fs, fss): ### Interface to Bootloader def open_serial(device, baud): - import os - import tty - import termios import serial print >> sys.stderr, "opening %s (%s Baud)" % (device, baud) @@ -109,7 +107,6 @@ def calc_csum(str): return cs def exec_command(dev, cmd, param, answer): - import struct return_codes = { 0: "OK", 1: "invalid command", 2: "bad checksum", 3: "not implemented", 4: "flash write error", @@ -321,7 +318,6 @@ commands = { if __name__ == '__main__': import getopt import sys - import os import struct usage = '''spreadspace simple pic downloader. |