Skip to content

Conversation

jepler
Copy link

@jepler jepler commented Feb 22, 2021

This saves about 60 bytes (Feather M4 went from 45040 -> 45100 bytes free) — 66 bytes of data eliminated, but 6 bytes paid back to initialize the length field.

I didn't test it yet, but I think the idea is solid. The initial version had a problem (descriptor size is in bytes) but now it's fixed and tested.

  • Before: SerialNumber: 9A814A27E47353350202026351D3A0FF
  • After: SerialNumber: 9A814A27E47353350202026351D3A0FF

This saves about 60 bytes (Feather M4 went from 45040 -> 45100 bytes free)
66 bytes of data eliminated, but 6 bytes paid back to initialize the length
field.
@tannewt tannewt self-requested a review February 23, 2021 00:45
Copy link
Member

@tannewt tannewt left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you!

@tannewt tannewt merged commit b19e7c9 into adafruit:main Feb 23, 2021
@jepler jepler deleted the usb-serial-number-savings branch November 3, 2021 21:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants