# HG changeset patch
# User Jan Mulder <jlmulder@xs4all.nl>
# Date 1554448324 -7200
# Node ID 9f0efc4df01ea047a37d32748a3351a1999305c4
# Parent  f0069f002c55303f3000ef2216b20e3b03b12bb6
cleanup, bugfix: do not exit simulator on 5h dive time

The code cleaned up here caused me some confusion as over 5h dives
where silently aborted in the simulator. Ok, not many uses will
try to simulate 5h dives, but its a useless limitation.

Signed-off-by: Jan Mulder <jlmulder@xs4all.nl>

diff -r f0069f002c55 -r 9f0efc4df01e Discovery/Src/simulation.c
--- a/Discovery/Src/simulation.c	Wed Apr 03 21:11:56 2019 +0200
+++ b/Discovery/Src/simulation.c	Fri Apr 05 09:12:04 2019 +0200
@@ -237,16 +237,8 @@
     /* Exposure Tissues
      */
     decom_tissues_exposure(1, &pDiveState->lifeData);
-    /* moved to updateSetpointStateUsed()
-    pDiveState->lifeData.ppO2 = decom_calc_ppO2( pDiveState->lifeData.pressure_ambient_bar, &pDiveState->lifeData.actualGas);
-    */
     decom_oxygen_calculate_cns_exposure(1, &pDiveState->lifeData.actualGas, pDiveState->lifeData.pressure_ambient_bar, &pDiveState->lifeData.cns);
-    //if((pDiveState->lifeData.depth_meter < 0.1f) || (pDiveState->lifeData.dive_time_seconds > 1*60*60))
-//    if(pDiveState->lifeData.dive_time_seconds > 1*60*60)
-    if(pDiveState->lifeData.dive_time_seconds > 5*60*60) // test Dirk Berben
-    {
-      simulation_exit();
-    }
+
     if(stateSimGetPointer()->lifeData.counterSecondsShallowDepth)
     {
             stateSimGetPointerWrite()->lifeData.counterSecondsShallowDepth += 1;