Skip to content

Completely clear u8g2 SPI device config prior to initialization#884

Open
marcsaegesser wants to merge 1 commit intonkolban:masterfrom
marcsaegesser:u8g2_spi_init
Open

Completely clear u8g2 SPI device config prior to initialization#884
marcsaegesser wants to merge 1 commit intonkolban:masterfrom
marcsaegesser:u8g2_spi_init

Conversation

@marcsaegesser
Copy link
Copy Markdown

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