Mercurial > public > ostc4
comparison Discovery/Src/vpm.c @ 982:22d5b477c903 GasConsumption
Code cleanup: Remove disabled option to switch deco calc on/off
| author | Ideenmodellierer |
|---|---|
| date | Sun, 02 Mar 2025 21:42:45 +0100 |
| parents | 79b522fbabe6 |
| children | d91345e9c009 |
comparison
equal
deleted
inserted
replaced
| 981:c6c781a2e85b | 982:22d5b477c903 |
|---|---|
| 540 } | 540 } |
| 541 j = 0; | 541 j = 0; |
| 542 | 542 |
| 543 for (i = 1; i < BUEHLMANN_STRUCT_MAX_GASES; i++) | 543 for (i = 1; i < BUEHLMANN_STRUCT_MAX_GASES; i++) |
| 544 { | 544 { |
| 545 if((pDiveSettings->decogaslist[i].change_during_ascent_depth_meter_otherwise_zero >= depth_change[0] + 1) | 545 if(pDiveSettings->decogaslist[i].change_during_ascent_depth_meter_otherwise_zero >= depth_change[0] + 1) |
| 546 #ifdef ENABLE_DECOCALC_OPTION | |
| 547 && (pDiveSettings->gas[pDiveSettings->decogaslist[i].GasIdInSettings].note.ub.decocalc) | |
| 548 #endif | |
| 549 ) | |
| 550 continue; | 546 continue; |
| 551 | 547 |
| 552 if((pDiveSettings->decogaslist[i].change_during_ascent_depth_meter_otherwise_zero <= 0) | 548 if(pDiveSettings->decogaslist[i].change_during_ascent_depth_meter_otherwise_zero <= 0) |
| 553 #ifdef ENABLE_DECOCALC_OPTION | |
| 554 || (pDiveSettings->gas[pDiveSettings->decogaslist[i].GasIdInSettings].note.ub.decocalc == 0) | |
| 555 #endif | |
| 556 ) | |
| 557 break; | 549 break; |
| 558 | 550 |
| 559 j++; | 551 j++; |
| 560 number_of_changes ++; | 552 number_of_changes ++; |
| 561 depth_change[j] = pDiveSettings->decogaslist[i].change_during_ascent_depth_meter_otherwise_zero ; | 553 depth_change[j] = pDiveSettings->decogaslist[i].change_during_ascent_depth_meter_otherwise_zero ; |
