Skip to content

Commit b0a5ce7

Browse files
committed
Add support for the Shearwater Tern TX and Peregrine TX
Both models are compatable with the previous models. The only surprise is that the Tern TX has the same model number as the Tern, while the Peregrine TX received a new model number. Reported-by: Sven Knoch <[email protected]> Reported-by: Greg McLaughlin <[email protected]>
1 parent bde9ef3 commit b0a5ce7

File tree

3 files changed

+7
-0
lines changed

3 files changed

+7
-0
lines changed

src/descriptor.c

+3
Original file line numberDiff line numberDiff line change
@@ -365,6 +365,8 @@ static const dc_descriptor_t g_descriptors[] = {
365365
{"Shearwater", "Petrel 3", DC_FAMILY_SHEARWATER_PETREL, 10, DC_TRANSPORT_BLE, dc_filter_shearwater},
366366
{"Shearwater", "Perdix 2", DC_FAMILY_SHEARWATER_PETREL, 11, DC_TRANSPORT_BLE, dc_filter_shearwater},
367367
{"Shearwater", "Tern", DC_FAMILY_SHEARWATER_PETREL, 12, DC_TRANSPORT_BLE, dc_filter_shearwater},
368+
{"Shearwater", "Tern TX", DC_FAMILY_SHEARWATER_PETREL, 12, DC_TRANSPORT_BLE, dc_filter_shearwater},
369+
{"Shearwater", "Peregrine TX", DC_FAMILY_SHEARWATER_PETREL, 13, DC_TRANSPORT_BLE, dc_filter_shearwater},
368370
/* Dive Rite NiTek Q */
369371
{"Dive Rite", "NiTek Q", DC_FAMILY_DIVERITE_NITEKQ, 0, DC_TRANSPORT_SERIAL, NULL},
370372
/* Citizen Hyper Aqualand */
@@ -676,6 +678,7 @@ dc_filter_shearwater (dc_descriptor_t *descriptor, dc_transport_t transport, con
676678
"Perdix 2",
677679
"Teric",
678680
"Peregrine",
681+
"Peregrine TX",
679682
"Tern"
680683
};
681684

src/shearwater_common.c

+3
Original file line numberDiff line numberDiff line change
@@ -738,6 +738,9 @@ shearwater_common_get_model (shearwater_common_device_t *device, unsigned int ha
738738
case 0x1512:
739739
model = PEREGRINE;
740740
break;
741+
case 0x1712:
742+
model = PEREGRINE_TX;
743+
break;
741744
case 0xC0E0:
742745
model = TERN;
743746
break;

src/shearwater_common.h

+1
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,7 @@ extern "C" {
5252
#define PETREL3 10
5353
#define PERDIX2 11
5454
#define TERN 12
55+
#define PEREGRINE_TX 13
5556

5657
#define NSTEPS 10000
5758
#define STEP(i,n) ((NSTEPS * (i) + (n) / 2) / (n))

0 commit comments

Comments
 (0)