Hi,
Sorry that we cannot check third party code for our sensors because we have our own API code available on the Github.
Now you can try to use BMM150 normal mode to see if you can get correct data by following the example at https://github.com/boschsensortec/BMM150-Sensor-API/blob/master/examples/generic/mag_drdy_interrupt/mag_drdy_interrupt.c. If it works, then you can follow my above pseudo code for forced mode so that you can have much faster sampling rate from BMM150.
Thanks.
... View more