summaryrefslogtreecommitdiff
path: root/software/pic.bootloader/downloader.py
diff options
context:
space:
mode:
Diffstat (limited to 'software/pic.bootloader/downloader.py')
-rwxr-xr-xsoftware/pic.bootloader/downloader.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/software/pic.bootloader/downloader.py b/software/pic.bootloader/downloader.py
index 12e9644..a371438 100755
--- a/software/pic.bootloader/downloader.py
+++ b/software/pic.bootloader/downloader.py
@@ -23,8 +23,8 @@
'''spreadspace simple pic downloader.'''
-VERSION_MAJ = 0
-VERSION_MIN = 1
+VERSION_MAJ = 1
+VERSION_MIN = 0
### HEX File Magic
@@ -170,9 +170,9 @@ def exec_command(dev, cmd, param, answer):
### low level commands
def cmd_identify(dev, name):
- data = exec_command(dev, 1, '', '<BB3sHHBHBBH')
+ data = exec_command(dev, 1, '', '<BB3sHHBHBB')
id = { 'ver_min': data[0], 'ver_maj': data[1], 'name': data[2], 'devid': data[3],
- 'fs': data[4], 'fss': data[5], 'es': data[6], 'mess': data[7], 'cfg': data[8], 'supported': data[9] }
+ 'fs': data[4], 'fss': data[5], 'es': data[6], 'mess': data[7], 'cfg': data[8] }
if id['ver_maj'] != VERSION_MAJ:
print >> sys.stderr, "incompatible protocol version, expected: %d, got: %d" % (VERSION_MAJ, id['ver_maj'])