[PATCH] Always show deco gas as dive gas

Anton Lundin glance at acc.umu.se
Tue Jan 6 09:24:08 PST 2015


On 06 January, 2015 - Joakim Bygdell wrote:

> 
> > On 06 Jan 2015, at 17:15, Anton Lundin <glance at acc.umu.se> wrote:
> > 
> > This unifies how we prints Nitrox deco gas dives with Trimix deco gas
> > dives.
> > 
> > Signed-off-by: Anton Lundin <glance at acc.umu.se>
> > ---
> > 
> > This is the opposite from what Jocke's patch does. After looking at my dive
> > list i think i actually like this one better.
> > 
> > What do other folks think?
> > 
> > -			snprintf(buffer, MAX_GAS_STRING, "%d/%d", o2, he);
> > +			if (o2 == o2max)
> > +				snprintf(buffer, MAX_GAS_STRING, "%d/%d", he, o2);
> 
> Shouldn’t this line read	snprintf(buffer, MAX_GAS_STRING, "%d/%d", o2, he);
> or you will get really low fO2 in your air-topped gas mix.
> 

Yep. Nice catch of this typo.


Dirk: Would you do the honers and correct the patch or would you like me
to re-send it as a v2?


//Anton

-- 
Anton Lundin	+46702-161604


More information about the subsurface mailing list