Signed-off-by: Anton Lundin <[email protected]>
---
 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

_______________________________________________
subsurface mailing list
[email protected]
http://lists.subsurface-divelog.org/cgi-bin/mailman/listinfo/subsurface

Reply via email to