mirror of
https://github.com/subsurface/subsurface.git
synced 2024-11-28 05:00:20 +00:00
8f0380fd05
Fix how gases are marked as 'used' and kept from being deleted in the equipment tab for CCR dives. It does not make sense to treat the (arbitrary) first gas in the list with a usage type of 'diluent' or 'oxygen' as 'used' and prevent the user from deleting it. Dive computers report the initial diluent and any other diluents used through a 'gaschange' event, so the actually used diluents are already picked up as part of gaschange event based logic. Also clarify the selection of the first diluent used as a default if no gaschange events exist. Also fixed the test data - gases that have a pressure change should be included in the profile if they do not have a gas change recorded against them by other dive computers, even if they are oxygen. A secondary problem shown by this is that the pressure change is not applied to the profile - the pressure is currently shown as constant on the start pressure. But this is for another pull request. Signed-off-by: Michael Keller <github@ike.ch>
11 MiB
11 MiB
The file is too large to be shown. |