[riot-commits] [RIOT-OS/RIOT] d8edf6: drivers/lsm6dsl: eliminate and correct casts

Sebastian Meiling s at mlng.net
Mon Jan 7 14:34:43 CET 2019


  Branch: refs/heads/master
  Home:   https://github.com/RIOT-OS/RIOT
  Commit: d8edf6dd4e2658ef9321eca744cdf6dae5d3c1bb
      https://github.com/RIOT-OS/RIOT/commit/d8edf6dd4e2658ef9321eca744cdf6dae5d3c1bb
  Author: Kees Bakker <kees at sodaq.com>
  Date:   2019-01-06 (Sun, 06 Jan 2019)

  Changed paths:
    M drivers/lsm6dsl/lsm6dsl_saul.c

  Log Message:
  -----------
  drivers/lsm6dsl: eliminate and correct casts

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.


  Commit: 7d56a1decddf1f7e234d5616d30a50fad1e9c1d3
      https://github.com/RIOT-OS/RIOT/commit/7d56a1decddf1f7e234d5616d30a50fad1e9c1d3
  Author: Sebastian Meiling <s at mlng.net>
  Date:   2019-01-07 (Mon, 07 Jan 2019)

  Changed paths:
    M drivers/lsm6dsl/lsm6dsl_saul.c

  Log Message:
  -----------
  Merge pull request #10711 from keestux/eliminate-casts-lsm6dsl

drivers/lsm6dsl: eliminate and correct casts


Compare: https://github.com/RIOT-OS/RIOT/compare/c999d3a592e1...7d56a1decddf
      **NOTE:** This service has been marked for deprecation: https://developer.github.com/changes/2018-04-25-github-services-deprecation/

      Functionality will be removed from GitHub.com on January 31st, 2019.


More information about the commits mailing list