summaryrefslogtreecommitdiffstats
path: root/core
diff options
context:
space:
mode:
authorGravatar Dirk Hohndel <dirk@hohndel.org>2017-07-09 14:45:39 -0700
committerGravatar Dirk Hohndel <dirk@hohndel.org>2017-07-09 14:46:42 -0700
commit8e5c211e2107ee8ac8e09bfd23a9a6e05676ae8c (patch)
treed07436ce10419cdac508c721ce7cab408f484cc6 /core
parentd2a5bf87c4ea5280f552ee6b08554b310b78fdef (diff)
downloadsubsurface-8e5c211e2107ee8ac8e09bfd23a9a6e05676ae8c.tar.gz
Revert "Add support for tank sensor battery for Perdix AI"
This reverts commit ed43b5dcedd150235cdc1ac5e5aedecb62f1c657 ("Add support for tank sensor battery for Perdix AI") since a much better solution to get to that information has been implemented in libdivecomputer. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'core')
-rw-r--r--core/libdivecomputer.c45
1 files changed, 0 insertions, 45 deletions
diff --git a/core/libdivecomputer.c b/core/libdivecomputer.c
index 6361a593e..55be49839 100644
--- a/core/libdivecomputer.c
+++ b/core/libdivecomputer.c
@@ -381,51 +381,6 @@ sample_cb(dc_sample_type_t type, dc_sample_value_t value, void *userdata)
case DC_SAMPLE_BEARING:
sample->bearing.degrees = value.bearing;
break;
-#if defined(SAMPLE_VENDOR_SHEARWATER_TRANSMITTERDATA)
- case DC_SAMPLE_VENDOR:
- if (value.vendor.type == SAMPLE_VENDOR_SHEARWATER_TRANSMITTERDATA && value.vendor.size == 2) {
- // logversion 7 allows us to get a reading of the transmitter battery
- // but that information is only available in the sample, so we use a
- // vendor sample to get it out
- char *str = NULL;
- unsigned char *data = (char *)value.vendor.data;
- if (data[0] != 0xF) {
- switch (data[0]) {
- case 0:
- str = "normal";
- break;
- case 1:
- str = "critical";
- break;
- case 2:
- str = "warning";
- break;
- default:
- str = "unknown";
- break;
- }
- add_extra_data(dc, "T1 battery", str);
- }
- if (data[1] != 0xF) {
- switch (data[1]) {
- case 0:
- str = "normal";
- break;
- case 1:
- str = "critical";
- break;
- case 2:
- str = "warning";
- break;
- default:
- str = "unknown";
- break;
- }
- add_extra_data(dc, "T2 battery", str);
- }
- }
- break;
-#endif
#ifdef DEBUG_DC_VENDOR
case DC_SAMPLE_VENDOR:
printf(" <vendor time='%u:%02u' type=\"%u\" size=\"%u\">", FRACTION(sample->time.seconds, 60),