From: Linus Torvalds Date: Fri, 21 Oct 2011 04:50:23 +0000 (+0300) Subject: Merge branch 'multiple_selection' of git://github.com/dirkhh/subsurface X-Git-Url: http://git.tdb.fi/?a=commitdiff_plain;h=c39d1c61563e6a8b458432c91b057eac51dcabab;hp=19a1693f580223a9b4e8bd35c3980f20e69c2f13;p=ext%2Fsubsurface.git Merge branch 'multiple_selection' of git://github.com/dirkhh/subsurface --- diff --git a/uemis.c b/uemis.c index 5450bf3..c7b1676 100644 --- a/uemis.c +++ b/uemis.c @@ -198,6 +198,8 @@ void uemis_parse_divelog_binary(char *base64, void *datap) { gasoffset = template = *(uint8_t *)(data+115); if (template == 3) gasoffset = 4; + if (template == 0) + template = 1; for (i = 0; i < template; i++) { float volume = *(float *)(data+116+25*(gasoffset + i)) * 1000.0; /* uemis always assumes a working pressure of 202.6bar (!?!?) - I first thought