Detect Sherwater Teric

Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
Dirk Hohndel 2018-09-07 17:06:05 -07:00
parent ec0029c4ce
commit 12b90c693a
2 changed files with 4 additions and 0 deletions

View File

@ -40,6 +40,7 @@ extern "C" {
#define PERDIX 5
#define PERDIXAI 6
#define NERD2 7
#define TERIC 8
#define NSTEPS 10000
#define STEP(i,n) ((NSTEPS * (i) + (n) / 2) / (n))

View File

@ -240,6 +240,9 @@ shearwater_petrel_device_foreach (dc_device_t *abstract, dc_dive_callback_t call
case 0x0D0D:
model = PERDIXAI;
break;
case 0x0F0F:
model = TERIC;
break;
default:
model = PETREL;
WARNING (abstract->context, "Unknown hardware type %04x. Assuming Petrel.", hardware);