summaryrefslogtreecommitdiffstats
path: root/profile.c
diff options
context:
space:
mode:
authorGravatar Lubomir I. Ivanov <neolit123@gmail.com>2014-10-25 12:42:33 +0300
committerGravatar Dirk Hohndel <dirk@hohndel.org>2014-10-27 07:37:57 -0700
commit2a9b0c7ebc9b8aa38df349d5fa5d9be8b896d395 (patch)
tree6236125de59b7a62762d801842868f0141c96b64 /profile.c
parent8bc5f388b5e331a8f8deb0e40be76788f454caae (diff)
downloadsubsurface-2a9b0c7ebc9b8aa38df349d5fa5d9be8b896d395.tar.gz
profile.c: remove unused variables in calculate_ccr_po2()
Signed-off-by: Lubomir I. Ivanov <neolit123@gmail.com> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'profile.c')
-rw-r--r--profile.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/profile.c b/profile.c
index d64d1c7e7..bea556f16 100644
--- a/profile.c
+++ b/profile.c
@@ -833,9 +833,9 @@ void calculate_deco_information(struct dive *dive, struct divecomputer *dc, stru
* there are and the differences among the readings from these sensors.
*/
double calculate_ccr_po2(struct plot_data *entry, struct divecomputer *dc) {
- double sump = 0.0, midp, minp = 999.9, maxp = -999.9;
+ double sump = 0.0, minp = 999.9, maxp = -999.9;
double diff_limit = 100; // The limit beyond which O2 sensor differences are considered significant (default = 100 mbar)
- int i, j, np = 0;
+ int i, np = 0;
for (i=0; i < dc->no_o2sensors; i++)
if (entry->o2sensor[i]) { // Valid reading