<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On Thu, Nov 13, 2014 at 9:09 PM, Willem Ferguson <span dir="ltr"><<a href="mailto:willemferguson@zoology.up.ac.za" target="_blank">willemferguson@zoology.up.ac.za</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Miika,<br>
There is a small problem in the Poseidon CSV import. It is evident not while doing a CSV import, but when exporting the dive to xml. I understand the cause but not the solution. In the CSV import, cylinder start and end pressures are stored in cyl->sample_start and cyl->sample_end. When writing to xml, the start and end pressures for cylinder 0 (oxygen), have not been transfered to cyl->start and cyl->end: these latter values are both zero and are used for writing to xml. Consequently the start and end pressures of the oxygen cylinder are not written to xml. For the diluent cylinder everything is ok, the pressures have been transfered for cyl->sample_start and sample_end to cyl->start and cyl->end.<br>
<br>
Probably half of my dives are multi-cylinder, and when reading my divelog with multiple cylinders from xml, the cyl->start and cyl->end values are always set up correctly for all cylinders. I have spent quite a bit of time looking around for a solution, but have only found a workaround or two, not a solution. Do you have any ideas?<br></blockquote><div><br></div><div>Will this do the trick? I am not entirely sure about the pressure handling, but this seems reasonable way to store the cylinder start and  end pressures.<br><br>miika<br></div></div><br></div></div>