mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
core: move get_or_create_cylinder() to struct dive
Other cylinder-creation functions were already there. Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
This commit is contained in:
parent
777e7f32a5
commit
9bb2255ba8
12 changed files with 83 additions and 83 deletions
|
@ -324,7 +324,7 @@ void uemis::parse_divelog_binary(std::string_view base64, struct dive *dive)
|
|||
* we store the incorrect working pressure to get the SAC calculations "close"
|
||||
* but the user will have to correct this manually
|
||||
*/
|
||||
cylinder_t *cyl = get_or_create_cylinder(dive, i);
|
||||
cylinder_t *cyl = dive->get_or_create_cylinder(i);
|
||||
cyl->type.size.mliter = lrintf(volume);
|
||||
cyl->type.workingpressure.mbar = 202600;
|
||||
cyl->gasmix.o2.permille = *(uint8_t *)(data.data() + 120 + 25 * (gasoffset + i)) * 10;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue