aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Dirk Hohndel <dirk@hohndel.org>2014-11-11 01:42:27 -0800
committerGravatar Dirk Hohndel <dirk@hohndel.org>2014-11-11 01:43:20 -0800
commitb51710c01ed481504a8103ab339adf3c01f83f7b (patch)
treeac17cae24b3968434fef465162f7c374dbb8daed
parent5c69f94bcade3f9c83ec27be449e4babc1aa1ae0 (diff)
downloadsubsurface-b51710c01ed481504a8103ab339adf3c01f83f7b.tar.gz
Remove leftover code for directly parsing Cobalt tank sizes
This should have been ripped out as part of commit 4be760463422 ("Use libdivecomputer tank size when available"). Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
-rw-r--r--libdivecomputer.c21
1 files changed, 0 insertions, 21 deletions
diff --git a/libdivecomputer.c b/libdivecomputer.c
index 08a7f2800..77501f6da 100644
--- a/libdivecomputer.c
+++ b/libdivecomputer.c
@@ -31,27 +31,6 @@ static dc_status_t create_parser(device_data_t *devdata, dc_parser_t **parser)
return dc_parser_new(parser, devdata->device);
}
-/* Atomics Aquatics Cobalt specific parsing of tank information
- * realistically this REALLY needs to be done in libdivecomputer - but the
- * current API doesn't even have the notion of tank size, so for now I do
- * this here, but I need to work with Jef to make sure this gets added in
- * the new libdivecomputer API */
-#define COBALT_HEADER 228
-struct atomics_gas_info {
- uint8_t gas_nr;
- uint8_t po2imit;
- uint8_t tankspecmethod; /* 1: CF@psi 2: CF@bar 3: wet vol in deciliter */
- uint8_t gasmixtype;
- uint8_t fo2;
- uint8_t fhe;
- uint16_t startpressure; /* in psi */
- uint16_t tanksize; /* CF or dl */
- uint16_t workingpressure;
- uint16_t sensorid;
- uint16_t endpressure; /* in psi */
- uint16_t totalconsumption; /* in liters */
-};
-
static int parse_gasmixes(device_data_t *devdata, struct dive *dive, dc_parser_t *parser, int ngases,
const unsigned char *data)
{