comparison Discovery/Src/buehlmann.c @ 51:8f8ea3a32e82

Resolved warnings pointing to possible invalid memory access
author Ideenmodellierer
date Tue, 31 Jul 2018 22:28:21 +0200
parents 5f11787b4f42
children b7689d9e888a
comparison
equal deleted inserted replaced
50:6310a27fd6d3 51:8f8ea3a32e82
1 /* getrennte Gase für die verschiedenen Modi 1 /* getrennte Gase f�r die verschiedenen Modi
2 um Gaswechsel Einträge zu vereinfachen 2 um Gaswechsel Eintr�ge zu vereinfachen
3 das heisst: 3 das heisst:
4 oc == bailout in cc mode 4 oc == bailout in cc mode
5 */ 5 */
6 6
7 /* Konvention: 7 /* Konvention:
543 } 543 }
544 544
545 int ascend_with_all_gaschanges(float pressure_decrease) 545 int ascend_with_all_gaschanges(float pressure_decrease)
546 { 546 {
547 float pressureTop, pressureTop_tmp, pressureBottom, pressureChange, ascendrate_in_seconds_for_one_bar, pressure_difference; 547 float pressureTop, pressureTop_tmp, pressureBottom, pressureChange, ascendrate_in_seconds_for_one_bar, pressure_difference;
548 int time_for_ascend; 548 int time_for_ascend = 0;
549 int seconds; 549 int seconds;
550 int i; 550 int i;
551 551
552 ascendrate_in_seconds_for_one_bar = 60 * 10 / pBuDiveSettings->ascentRate_meterperminute; 552 ascendrate_in_seconds_for_one_bar = 60 * 10 / pBuDiveSettings->ascentRate_meterperminute;
553 553