Seeed-Studio/Grove_3Axis_Digital_Compass — pull request #1 by aSmig (2014-12-08 09:34:07+00:00)
Title: Compatibility for MCU>16-bit. Like Intel Edison

The signed 16-bit axis data dropped into a 32-bit int loses respect for the sign without explicit typecasting. Alternate fix would be to redefine the MagnetometerRaw struct with int16_t values.