From 391c4095f2338fdca3a38d4ae6c7e0cd0e029087 Mon Sep 17 00:00:00 2001 From: Dirk Hohndel Date: Mon, 21 Jan 2019 02:01:48 -0800 Subject: [PATCH] Shearwater parser: add new harware model nr for Teric As of firmware 11 at least my Teric identifies as 0x1F0A. Also, just like libdivecomputer upstream, don't assume that an unknown model is a Petrel - that was a stupid thing to do and caused downloads with the Teric to break. Signed-off-by: Dirk Hohndel Signed-off-by: Linus Torvalds --- src/shearwater_petrel.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/shearwater_petrel.c b/src/shearwater_petrel.c index 7158a04..695bd74 100644 --- a/src/shearwater_petrel.c +++ b/src/shearwater_petrel.c @@ -241,10 +241,11 @@ shearwater_petrel_device_foreach (dc_device_t *abstract, dc_dive_callback_t call model = PERDIXAI; break; case 0x0F0F: + case 0x1F0A: model = TERIC; break; default: - model = PETREL; + // return a model of 0 which is unknown WARNING (abstract->context, "Unknown hardware type %04x. Assuming Petrel.", hardware); }