Robert C. Helling e794efaba6 Allow for more O2 sensors
The Divesoft Liberty has four O2 sensors. So far, we had a hard coded
limit of three sensors and crashed with a failed assert when we
encoutered more than three. This allows for up to
MAX_O2_SENSORS which is currently 6. The voting logic is adapted
accordingly: We sort the values and we keep deleting the values that
differ more than 20% by value from the closest. This follows what
Shearwater implements on their computers.

In some of the import/export functions the value is still hard
coded to 6 thanks to explicit field names.

Signed-off-by: Robert C. Helling <helling@lmu.de>
2024-01-23 19:24:53 +01:00
..
2018-01-08 06:06:12 +02:00
2015-03-10 10:03:08 -07:00
2014-01-08 21:54:29 +08:00
2013-12-28 07:40:54 -08:00
2014-02-06 11:29:23 -08:00
2014-04-07 14:20:01 -07:00
2014-11-17 00:24:33 +00:00
2015-04-24 07:07:31 -07:00
2015-03-14 18:15:08 -07:00
2015-03-16 12:42:36 -07:00
2017-02-21 13:14:56 -08:00
2021-02-26 08:42:30 -08:00
2019-04-12 18:19:07 +03:00
2015-07-13 15:21:30 -07:00
2013-12-24 10:43:29 -08:00