Skip to content

Conversation

@mubes
Copy link

@mubes mubes commented Feb 12, 2020

Fix crowbarring of 32 value into 8 bit register sequence, which was generating an alignment warning.

@tannewt
Copy link
Member

tannewt commented Feb 13, 2020

What warning was this giving? I tend to cast (uint8_t*) to uint16_t* or uint32_t* frequently and am surprised this is the only spot you found it.

@mubes
Copy link
Author

mubes commented Feb 13, 2020 via email

@arturo182
Copy link
Collaborator

The code looks fine, could've been a memcpy but a loop works too, however the code style doesn't quite match the rest of the file, you use tabs, put opening braces on new line, and are missing spaces around some of the operators :)

Copy link
Collaborator

@arturo182 arturo182 left a comment

Choose a reason for hiding this comment

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

👌

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.

This works for me! I'm happy to see warnings get resolved. Thanks!

@tannewt tannewt merged commit 2063867 into adafruit:master Feb 18, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

3 participants