mirror of
https://github.com/subsurface/subsurface.git
synced 2024-11-28 05:00:20 +00:00
6c9a9b2fb5
The d->cylinders created will be overriden by libdivecomputer parsing, resulting in 0, 1 , may be 2 cylinders depending on DC data. This is not what we want when importing a divelog, because we will miss all hand entered tanks. BTW, using get_cylinder() on tank number bigger than created, results in a NULL pointer and a crash. As we can't foresee how many tanks (or even it's positional numbers in log) a diver has used, the full 10 tanks supported by SmarTrak can be easily created and parsed using get_or_create_cylinder(), and unused cleaned later. Signed-off-by: Salvador Cuñat <salvador.cunat@gmail.com> |
||
---|---|---|
.. | ||
cmake/Modules | ||
CMakeLists.txt | ||
smartrak.c | ||
smrtk2ssrfc_window.cpp | ||
smrtk2ssrfc_window.h | ||
smrtk2ssrfc_window.ui | ||
smtk2ssrf.desktop | ||
smtk_standalone.cpp |