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

Completely clear u8g2 SPI device config prior to initialization #884

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

marcsaegesser
Copy link

The previous implementation initialized each member of the
spi_device_interface_config_t individually. This missed some members
causing uninitialized memory to be used. This change simply
initializes the structure using memset() before filling in the
necessary fields.

The previous implementation initialized each member of the
spi_device_interface_config_t individually. This missed some members
causing uninitialized memory to be used. This change simply
initializes the structure using memset() before filling in the
necessary fields.
@adamwilt adamwilt mentioned this pull request Dec 11, 2020
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.

1 participant