diff Discovery/Src/simulation.c @ 233:9f0efc4df01e div-fixes-4-1

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>
author Jan Mulder <jlmulder@xs4all.nl>
date Fri, 05 Apr 2019 09:12:04 +0200
parents 2bb1db22b5f5
children 5ca177d2df5d
line wrap: on
line diff
--- 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;