diff options
author | Christian Pointner <equinox@spreadspace.org> | 2013-07-03 23:55:18 +0000 |
---|---|---|
committer | Christian Pointner <equinox@spreadspace.org> | 2013-07-03 23:55:18 +0000 |
commit | e16b94678da7686c05845143e60f1cef3dad832c (patch) | |
tree | df319b5b0802f04db6cd6e86c3dc4bb77de5d3d3 /downloader/downloader.py | |
parent | added command code translation (diff) |
added 'mess' value to identify
git-svn-id: https://svn.spreadspace.org/pic/trunk@29 a09c6847-51d9-44de-8ef2-e725cf50f3c7
Diffstat (limited to 'downloader/downloader.py')
-rwxr-xr-x | downloader/downloader.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/downloader/downloader.py b/downloader/downloader.py index 936f459..c918357 100755 --- a/downloader/downloader.py +++ b/downloader/downloader.py @@ -158,8 +158,9 @@ def exec_command(dev, cmd, answer): ### Commands def identify(dev): - data = exec_command(dev, 'i', 'BB10sHBB') - id = { 'ver_maj': data[0], 'ver_min': data[1], 'name': data[2], 'devid': data[3], 'fss': data[4], 'supported': data[5] } + data = exec_command(dev, 'i', 'BB10sHBHH') + id = { 'ver_maj': data[0], 'ver_min': data[1], 'name': data[2], 'devid': data[3], + 'fss': data[4], 'mess': data[5], 'supported': data[6] } if id['ver_maj'] != VERSION_MAJ: print "incompatible protocol version, expected: %d, got: %d" % (VERSION_MAJ, id['ver_maj']) |