Prepare for GitHub.

This commit is contained in:
Markus Birth 2018-10-14 23:51:09 +02:00
parent 99a429f9b0
commit c0681bc757
Signed by: mbirth
GPG Key ID: A9928D7A098C3A9A
2 changed files with 15 additions and 3 deletions

View File

@ -1,2 +1,14 @@
http://www.gpspassion.com/forumsen/topic.asp?TOPIC_ID=115804&whichpage=1
http://www.gpspassion.com/forumsen/topic.asp?TOPIC_ID=137838&whichpage=50
GCD Parser
==========
This is a parser for GCD files (firmware updates from a well-known manufacturer).
It's in Python, so feel free to add cool new features and submit pull requests.
Thanks to TurboCCC and kunix for your work.
Most info from:
* http://www.gpspassion.com/forumsen/topic.asp?TOPIC_ID=115804&whichpage=1
* http://www.gpspassion.com/forumsen/topic.asp?TOPIC_ID=137838&whichpage=50
* hours of looking at hex numbers

2
gcd.py
View File

@ -169,7 +169,7 @@ with open(FILE, "rb") as f:
#print(hexlify(payload).decode("utf-8"))
#print(" > " + repr(payloadshort))
add_to_cksum(payload)
if ttype in [0x0505]:
if ttype in [0x0505, 0x02bd]:
with open("fw_{:04x}.bin".format(ttype), "ab") as of:
of.write(payload)
i = i + 1