[PATCH] Removed dependence on not yet released libdivecomputer code.
John Van Ostrand
john at vanostrand.com
Mon Oct 27 19:02:09 PDT 2014
Signed-off-by: John Van Ostrand <john at vanosrand.com>
---
cochran.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/cochran.c b/cochran.c
index 9e31f55..b3ba7b4 100644
--- a/cochran.c
+++ b/cochran.c
@@ -351,11 +351,13 @@ int cochran_dive_event(struct divecomputer *dc, const unsigned char *s,
SAMPLE_FLAGS_BEGIN, 0,
QT_TRANSLATE_NOOP("gettextFromC", "ascent"));
break;
+#ifdef SAMPLE_EVENT_BATTERY
case 0xC2: // Low battery warning
add_event(dc, seconds, SAMPLE_EVENT_BATTERY,
SAMPLE_FLAGS_NONE, 0,
QT_TRANSLATE_NOOP("gettextFromC", "battery"));
break;
+#endif
case 0xC3: // CNS warning
add_event(dc, seconds, SAMPLE_EVENT_OLF,
SAMPLE_FLAGS_BEGIN, 0,
--
1.8.3.1
More information about the subsurface
mailing list