summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Pointner <equinox@spreadspace.org>2013-07-11 02:44:15 (GMT)
committerChristian Pointner <equinox@spreadspace.org>2013-07-11 02:44:15 (GMT)
commitb168e688411de164033ecd73a6758baa913b6fa5 (patch)
treeef83631d6edb8be533d9b4050ce704d632470a9f
parent57b3981d45149f747e820290cdfe296eb026b041 (diff)
cleaned up imports
git-svn-id: https://svn.spreadspace.org/pic/trunk@80 a09c6847-51d9-44de-8ef2-e725cf50f3c7
-rwxr-xr-xbootloader/downloader.py6
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.