mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-01 08:43:24 +00:00
Braces are better than indentation to scope if / if / else
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
1301cb9664
commit
4682002474
1 changed files with 2 additions and 1 deletions
|
@ -2073,7 +2073,7 @@ extern int dm5_cylinders(void *handle, int columns, char **data, char **column)
|
||||||
cur_dive->cylinder[cur_cylinder_index].start.mbar = atoi(data[7]);
|
cur_dive->cylinder[cur_cylinder_index].start.mbar = atoi(data[7]);
|
||||||
if (data[8] && atoi(data[8]) > 0 && atoi(data[8]) < 350000)
|
if (data[8] && atoi(data[8]) > 0 && atoi(data[8]) < 350000)
|
||||||
cur_dive->cylinder[cur_cylinder_index].end.mbar = (atoi(data[8]));
|
cur_dive->cylinder[cur_cylinder_index].end.mbar = (atoi(data[8]));
|
||||||
if (data[6])
|
if (data[6]) {
|
||||||
/* DM5 shows tank size of 12 liters when the actual
|
/* DM5 shows tank size of 12 liters when the actual
|
||||||
* value is 0 (and using metric units). So we just use
|
* value is 0 (and using metric units). So we just use
|
||||||
* the same 12 liters when size is not available */
|
* the same 12 liters when size is not available */
|
||||||
|
@ -2081,6 +2081,7 @@ extern int dm5_cylinders(void *handle, int columns, char **data, char **column)
|
||||||
cur_dive->cylinder[cur_cylinder_index].type.size.mliter = 12000;
|
cur_dive->cylinder[cur_cylinder_index].type.size.mliter = 12000;
|
||||||
else
|
else
|
||||||
cur_dive->cylinder[cur_cylinder_index].type.size.mliter = (atof(data[6])) * 1000;
|
cur_dive->cylinder[cur_cylinder_index].type.size.mliter = (atof(data[6])) * 1000;
|
||||||
|
}
|
||||||
if (data[2])
|
if (data[2])
|
||||||
cur_dive->cylinder[cur_cylinder_index].gasmix.o2.permille = atoi(data[2]) * 10;
|
cur_dive->cylinder[cur_cylinder_index].gasmix.o2.permille = atoi(data[2]) * 10;
|
||||||
if (data[3])
|
if (data[3])
|
||||||
|
|
Loading…
Add table
Reference in a new issue