private void checkCalibrationOutOfTime(){
  if ((calibrationFactor > 0) && (calibrationStatus != MedtronicConstants.WITHOUT_ANY_CALIBRATION) && calibrationStatus != MedtronicConstants.LAST_CALIBRATION_FAILED_USING_PREVIOUS && calibrationStatus != MedtronicConstants.CALIBRATION_MORE_THAN_12H_OLD) {
    if (lastCalibrationDate > 0 && (System.currentTimeMillis() - lastCalibrationDate) > MedtronicConstants.TIME_12_HOURS_IN_MS) {
      calibrationStatus=MedtronicConstants.CALIBRATION_MORE_THAN_12H_OLD;
      SharedPreferences.Editor editor=settings.edit();
      editor.putInt("calibrationStatus",calibrationStatus);
      editor.commit();
    }
  }
}

private void checkCalibrationOutOfTime ( ) { if ( ( calibrationFactor > 0 ) && ( calibrationStatus != MedtronicConstants . WITHOUT_ANY_CALIBRATION ) && calibrationStatus != MedtronicConstants . LAST_CALIBRATION_FAILED_USING_PREVIOUS && calibrationStatus != MedtronicConstants . CALIBRATION_MORE_THAN_12H_OLD ) { if ( lastCalibrationDate > 0 && ( System . currentTimeMillis ( ) - lastCalibrationDate ) > MedtronicConstants . TIME_12_HOURS_IN_MS ) { calibrationStatus = MedtronicConstants . CALIBRATION_MORE_THAN_12H_OLD ; SharedPreferences . Editor editor = settings . edit ( ) ; editor . putInt ( "calibrationStatus" , calibrationStatus ) ; editor . commit ( ) ; } } }
this method checks if the calibration has got too old ( over 12 hours )
