Switch #define for Z_MSB/Z_LSB and Y_MSB/Y_LSB. Per the datasheet it's X, Z, Y not X, Y, Z
Fork of HMC5883L by
History
Switched HMC5883L_Z_MSB/LSB and HMC5883L_Y_MSB/LSB as per the datasheet: https://aerospace.honeywell.com/~/media/Images/Plymouth%20Website%20PDFs/Magnetic%20Sensors/Data%20Sheets/HMC5883L_3-Axis_Digital_Compass_IC.ashx
2015-12-03, by AlpNov [Thu, 03 Dec 2015 19:19:20 +0000] rev 1
Switched HMC5883L_Z_MSB/LSB and HMC5883L_Y_MSB/LSB as per the datasheet: https://aerospace.honeywell.com/~/media/Images/Plymouth%20Website%20PDFs/Magnetic%20Sensors/Data%20Sheets/HMC5883L_3-Axis_Digital_Compass_IC.ashx
coba
2013-12-12, by gmatjuara [Thu, 12 Dec 2013 02:25:11 +0000] rev 0
coba