improved the startup of magnetometer's driver