/* Clears the IMU data ready flag. In case of ver 0.3.0 and older of the PIC firmware the interrupt register also needs to be cleared.  */
void IMU_clearDataReadyFlag(void)
/* Clears the IMU data ready flag. In case of ver 0.3.0 and older of the PIC firmware the interrupt register also needs to be cleared.  */
void IMU_clearDataReadyFlag(void)
{
   dataReady = false;
   if( BOARD_picIsLegacyIntCtrl() ) {
      BOARD_picWriteReg( BOARD_PIC_REG_INT_CLEAR, 0 );
   }
   return;
}