aboutsummaryrefslogtreecommitdiffstats
path: root/libdivecomputer.c
diff options
context:
space:
mode:
authorGravatar Dirk Hohndel <dirk@hohndel.org>2014-11-20 15:04:01 -0800
committerGravatar Dirk Hohndel <dirk@hohndel.org>2014-11-20 15:04:37 -0800
commit7cedc4d48f574aa763771c40017c78279302c129 (patch)
tree07efb3966f8c384f9bed412aabba608c8f2e7939 /libdivecomputer.c
parente883819061ea991bf2b9591412949b2c47965d91 (diff)
downloadsubsurface-7cedc4d48f574aa763771c40017c78279302c129.tar.gz
Stop cluttering stout with DC_VENDOR data
This was intended for debugging and somehow stayed enabled. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'libdivecomputer.c')
-rw-r--r--libdivecomputer.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/libdivecomputer.c b/libdivecomputer.c
index 17bd01a0a..9ac50a4eb 100644
--- a/libdivecomputer.c
+++ b/libdivecomputer.c
@@ -210,6 +210,7 @@ sample_cb(dc_sample_type_t type, dc_sample_value_t value, void *userdata)
case DC_SAMPLE_BEARING:
sample->bearing.degrees = value.bearing;
break;
+#ifdef DEBUG_DC_VENDOR
case DC_SAMPLE_VENDOR:
printf(" <vendor time='%u:%02u' type=\"%u\" size=\"%u\">", FRACTION(sample->time.seconds, 60),
value.vendor.type, value.vendor.size);
@@ -217,6 +218,7 @@ sample_cb(dc_sample_type_t type, dc_sample_value_t value, void *userdata)
printf("%02X", ((unsigned char *)value.vendor.data)[i]);
printf("</vendor>\n");
break;
+#endif
#if DC_VERSION_CHECK(0, 3, 0)
case DC_SAMPLE_SETPOINT:
/* for us a setpoint means constant pO2 from here */