DavidEGrayson / minimu9-ahrs

Program for reading data from the Pololu MinIMU-9 over I²C. Works on the Raspberry Pi and other embedded ARM Linux boards.
Other
167 stars 68 forks source link

Edits to high/low address references for LIS3MDL #29

Closed kc13 closed 6 years ago

kc13 commented 6 years ago

Hello minimu9-ahrs developers,

In general I have found this to be tremendously helpful software. I'm just proposing two very small edits to fix what I think might be errors (but apologies in advance if I am wrong).

In lis3mdl.h: The high and low addresses appeared to be swapped, when compared to the table on the MinIMU-9 v5 product page.

In minimu9.cpp: It appeared that this was searching for the low lis3mdl address twice, rather than for both the low and high address.

-Karin

DavidEGrayson commented 6 years ago

Thanks, I merged it in!