mirror of
https://github.com/subsurface/subsurface.git
synced 2024-11-30 22:20:21 +00:00
Check different sensors on divinglog import
Signed-off-by: Miika Turkia <miika.turkia@gmail.com>
This commit is contained in:
parent
637210564a
commit
43c1c0a1d1
1 changed files with 1 additions and 1 deletions
|
@ -217,7 +217,7 @@ extern int divinglog_profile(void *handle, int columns, char **data, char **colu
|
|||
* Count the number of o2 sensors
|
||||
*/
|
||||
|
||||
if (!cur_dive->dc.no_o2sensors && (cur_sample->o2sensor[0].mbar || cur_sample->o2sensor[0].mbar || cur_sample->o2sensor[0].mbar)) {
|
||||
if (!cur_dive->dc.no_o2sensors && (cur_sample->o2sensor[0].mbar || cur_sample->o2sensor[1].mbar || cur_sample->o2sensor[2].mbar)) {
|
||||
cur_dive->dc.no_o2sensors = cur_sample->o2sensor[0].mbar ? 1 : 0 +
|
||||
cur_sample->o2sensor[1].mbar ? 1 : 0 +
|
||||
cur_sample->o2sensor[2].mbar ? 1 : 0;
|
||||
|
|
Loading…
Reference in a new issue