-
Notifications
You must be signed in to change notification settings - Fork 70
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Python firmware patch script #28
base: master
Are you sure you want to change the base?
Conversation
Whow! Nice! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Added compatibility
"""This class contains the actual patching scripts for specific items""" | ||
|
||
known_units = [ | ||
ASUnits("AirSense 10 Autoset", "37028", "SX567-0401", "533b91127aa22e05b933db203ad56c449dc12a8c3fd62f57bd88c472a8061775"), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you add SX567-0306 with hash of 363a204ba217f31223e929365d58b8f5ce038a7681e362fe157e190c2eacbd30 ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I may as well put in a request for "AirCurve 10 VAuto", "37051", "SX567-0401", "6790b548e0b37c57bc118772d4a04a599c0b74b16cd92e821071b9c7ba5ab711"
|
||
if self.asf.hash == self.known_units[0].hash: | ||
self.asf.patch(fw, 0xBB734, clobber=True) | ||
else: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could you add an "elif" for SX567-0306 to patch to offset 0xbb4d4
This will close issue #10, hopefully having fixed issues with PR #18.
Script now uses command-line arguments for most things by default. There are a few "forward references" for certain options (such as logo patching & for serial monitor). The options are broken right now, as required dependencies are in my fork... will be fixed shortly. This python script is more critical however, so made sense to submit this PR first (then add the support stuff back).