[riot-notifications] [RIOT-OS/RIOT] drivers/bmx055: eliminate some casts (#10704)

Sebastian Meiling notifications at github.com
Tue Jan 8 14:35:34 CET 2019


smlng commented on this pull request.



> @@ -24,7 +24,9 @@
 
 static int read_mag(const void *dev, phydat_t *res)
 {
-    if (bmx055_mag_read((bmx055_t *)dev, (int16_t *)res) != BMX055_OK) {
+    const bmx055_t *mydev = (const bmx055_t *)dev;
+
+    if (bmx055_mag_read(mydev, res->val) != BMX055_OK) {

ah damn, right, leave as is ... my bad (eyes)

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/RIOT-OS/RIOT/pull/10704#discussion_r245997024
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.riot-os.org/pipermail/notifications/attachments/20190108/374d4a1c/attachment.html>


More information about the notifications mailing list