mirror of
https://github.com/subsurface/subsurface.git
synced 2024-11-28 05:00:20 +00:00
Fix CCR detection on Divinglog import
Note that I have not been able to do a positive test for this due to lack of CCR sample data. But at least OC dives are now categorized correctly. Signed-off-by: Miika Turkia <miika.turkia@gmail.com>
This commit is contained in:
parent
27bb76e834
commit
0e9e1b6043
1 changed files with 1 additions and 1 deletions
|
@ -3227,7 +3227,7 @@ extern int divinglog_profile(void *handle, int columns, char **data, char **colu
|
||||||
* the amount O2 sensors.
|
* the amount O2 sensors.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
if (!cur_dive->dc.no_o2sensors) {
|
if (!cur_dive->dc.no_o2sensors && (cur_sample->o2sensor[0].mbar || cur_sample->o2sensor[0].mbar || cur_sample->o2sensor[0].mbar)) {
|
||||||
cur_dive->dc.no_o2sensors = cur_sample->o2sensor[0].mbar ? 1 : 0 +
|
cur_dive->dc.no_o2sensors = cur_sample->o2sensor[0].mbar ? 1 : 0 +
|
||||||
cur_sample->o2sensor[1].mbar ? 1 : 0 +
|
cur_sample->o2sensor[1].mbar ? 1 : 0 +
|
||||||
cur_sample->o2sensor[2].mbar ? 1 : 0;
|
cur_sample->o2sensor[2].mbar ? 1 : 0;
|
||||||
|
|
Loading…
Reference in a new issue