[riot-notifications] [RIOT-OS/RIOT] drivers/lsm6dsl: eliminate and correct casts (#10711)
notifications at github.com
Sun Jan 6 16:58:43 CET 2019
Converting phydat_t* to lsm6dsl_3d_data_t* is not correct, but it happened
to just work because the first struct member of phydat_t will be used.
Furthermore, casting &res to int16_t* is wrong. Again, it just happened
to work. Unfortunately, I want to add.
You can view, comment on, or merge this pull request online at:
-- Commit Summary --
* drivers/lsm6dsl: eliminate and correct casts
-- File Changes --
M drivers/lsm6dsl/lsm6dsl_saul.c (6)
-- Patch Links --
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the notifications