On 2014-06-10 23:00, Anton Lundin wrote:
/* Ignore bogus data - libdivecomputer does some crazy stuff */
- if (o2 + he <= O2_IN_AIR || o2 >= 1000)
+ if (o2 + he <= O2_IN_AIR || o2 > 1000)
o2 = 0;
- if (he < 0 || he >= 800 || o2 + he >= 1000)
+ if (he < 0 || o2 + he > 1000)
he = 0;
If you encounter some bogus data, please report this as a
libdivecomputer bug. It's much better to fix the underlying problem (a
bug in the libdivecomputer parser), rather than trying to workaround the
symptoms in subsurface.
Jef
_______________________________________________
subsurface mailing list
[email protected]
http://lists.hohndel.org/cgi-bin/mailman/listinfo/subsurface