<div dir="ltr">Thanks Dirk,<br><div><div class="gmail_extra"><br><div class="gmail_quote">On 4 July 2015 at 23:42, Dirk Hohndel <span dir="ltr"><<a href="mailto:dirk@hohndel.org" target="_blank">dirk@hohndel.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">We have macros to make this easier: M_OR_FT(3, 10) gives you the correct<br>
value for 3m if the user has things set up for meters and 10ft if the user<br>
is in imperial mode. This may not work for the "simply copy the table"<br>
approach that you have taken, but I figure I'd point this out in case it<br>
could be useful elsewhere.<br>
<span class=""><font color="#888888"><br></font></span></blockquote><div><br></div><div>My setting of the last depth stop depth when 'last stop at 20ft' is selected demonstrates why that macro is useful.  I was accidentally setting it to 6080 mm, rather than 6096 mm, which meant that there was a mini-ascent in the calculated profile.  The attached patch uses the M_OR_FT macro, fixing this issue.<br><br></div><div>We could use the same macro to loop through the entire decostoplevels array, but that would be less efficient than what is done currently.  If you're happy with the memcpy method, I think we should use that.  And in case you're wondering, I didn't make the same mistake setting the decostoplevels_imperial array.<br><br></div><div>I have also reattached the read-planner-preferences patch to save mixing patches from different emails, but it is unchanged from before.<br></div><div> <br></div><div>Rick<br></div></div></div></div></div>