comparison Discovery/Src/logbook.c @ 225:2bb1db22b5f5 div-fixes-3

cleanup: random set of cleanups A random set of cleanups, as found during code reading, and looking around fixing issues. Contains all kinds of things: typo's in comment, typo in variable name, removal of unused code, making things static where possible. Does not contain any functional changes. Signed-off-by: Jan Mulder <jlmulder@xs4all.nl>
author Jan Mulder <jlmulder@xs4all.nl>
date Mon, 01 Apr 2019 15:50:41 +0200
parents ac58a9fb92ac
children 6e78137952af
comparison
equal deleted inserted replaced
224:ceecabfddb57 225:2bb1db22b5f5
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))