comparison Discovery/Src/logbook.c @ 226:2ae6440cb8d6

Merged in janlmulder/ostc4/div-fixes-3 (pull request #13) 3 bug fixes and some cleanup.
author heinrichsweikamp <bitbucket@heinrichsweikamp.com>
date Mon, 01 Apr 2019 19:19:04 +0000
parents 2bb1db22b5f5
children 6e78137952af
comparison
equal deleted inserted replaced
221:486dddfba7ce 226:2ae6440cb8d6
1340 1340
1341 1341
1342 static void logbook_SetCompartmentDesaturation(void) 1342 static void logbook_SetCompartmentDesaturation(void)
1343 { 1343 {
1344 const SDiveState * pStateReal = stateRealGetPointer(); 1344 const SDiveState * pStateReal = stateRealGetPointer();
1345 SLifeData2 secondaryInformation = { 0 };
1345 1346
1346 decom_tissues_desaturation_time(&pStateReal->lifeData, &secondaryInformation); 1347 decom_tissues_desaturation_time(&pStateReal->lifeData, &secondaryInformation);
1347 for(int i=0;i<16;i++) 1348 for(int i=0;i<16;i++)
1348 { 1349 {
1349 if(secondaryInformation.tissue_nitrogen_desaturation_time_minutes[i] <= (15 * 255)) 1350 if(secondaryInformation.tissue_nitrogen_desaturation_time_minutes[i] <= (15 * 255))