[Libdivecomputer PATCH] Teach ostc deco model info strings about OSTC4 VPM

Anton Lundin glance at acc.umu.se
Sun Jan 8 13:27:51 PST 2017


Signed-off-by: Anton Lundin <glance at acc.umu.se>
---
 src/hw_ostc_parser.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/src/hw_ostc_parser.c b/src/hw_ostc_parser.c
index ca39ce8..e998df2 100644
--- a/src/hw_ostc_parser.c
+++ b/src/hw_ostc_parser.c
@@ -68,6 +68,7 @@
 
 #define OSTC3_ZHL16    0
 #define OSTC3_ZHL16_GF 1
+#define OSTC4_VPM      2
 
 #define OSTC4      0x3B
 
@@ -602,6 +603,8 @@ hw_ostc_parser_get_field (dc_parser_t *abstract, dc_field_type_t type, unsigned
 						(version == 0x22 && data[layout->decomode] == FROG_ZHL16_GF) ||
 						(version == 0x21 && (data[layout->decomode] == OSTC_ZHL16_OC_GF || data[layout->decomode] == OSTC_ZHL16_CC_GF)))
 					strncpy(buf, "ZH-L16-GF", BUFLEN);
+				else if (((version == 0x24) && data[layout->decomode] == OSTC4_VPM))
+					strncpy(buf, "VPM", BUFLEN);
 				else
 					return DC_STATUS_DATAFORMAT;
 				break;
-- 
2.9.3



More information about the subsurface mailing list