[riot-notifications] [RIOT-OS/RIOT] drivers/lsm6dsl: eliminate and correct casts (#10711)

Kees Bakker 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[0] 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...
URL: <http://lists.riot-os.org/pipermail/notifications/attachments/20190106/d620ba02/attachment.html>

More information about the notifications mailing list