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
applet.program.stusb4500_nvm: Import new applet to program STUSB4500 NVM #314
Conversation
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.
LGTM
@@ -0,0 +1,199 @@ | |||
# Reference: STSW-STUSB004 Documentation |
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 upload this to the archive please?
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.
Will do. Didn't even see the archive before.
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.
Thank you!
|
||
async def disable(self): | ||
result = await self._write_regs(self.FTP_CTRL_0, [0x40, 0x00]) | ||
result = result and await self._write_regs(self.FTP_KEY, self.FTP_KEY_VALUE) |
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.
Arf, actually just noticed this should have been 0x00 value ... (to remove the "magic value" from the register).
Doesn't impact functionality (which is why I didn't notice) but I'll push a new version with that fixed tomorrow.
Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
Fixed the "disable" method and added the archive accession number |
Thanks for the nice applet! |
No description provided.