Skip to content
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

Tools: remove redundant DroneCAN packet buffer initialization #27743

Merged
merged 2 commits into from
Aug 3, 2024

Commits on Aug 3, 2024

  1. AP_Bootloader: remove redundant DroneCAN packet buffer initialization

    The <msg>_encode method always zeros the buffer up to <msg>_MAX_SIZE
    bytes so there is no need to do it before calling the function.
    
    Saves at least 8 bytes per instance.
    tpwrules committed Aug 3, 2024
    Configuration menu
    Copy the full SHA
    5a02c19 View commit details
    Browse the repository at this point in the history
  2. AP_Periph: remove redundant DroneCAN packet buffer initialization

    The <msg>_encode method always zeros the buffer up to <msg>_MAX_SIZE
    bytes so there is no need to do it before calling the function.
    
    Saves at least 8 bytes per instance.
    tpwrules committed Aug 3, 2024
    Configuration menu
    Copy the full SHA
    5741938 View commit details
    Browse the repository at this point in the history