updated to latest version of microcontroller

fixed bugs with configuring the magnetometer and the gyroscope