One more merge fix
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
7c33c633fb
commit
55a44a73bb
@ -128,9 +128,6 @@ shearwater_petrel_device_custom_open (dc_device_t **out, dc_context_t *context,
|
|||||||
return DC_STATUS_NOMEMORY;
|
return DC_STATUS_NOMEMORY;
|
||||||
}
|
}
|
||||||
|
|
||||||
// Initialize the base class.
|
|
||||||
device_init (&device->base.base, context, &shearwater_petrel_device_vtable);
|
|
||||||
|
|
||||||
// Set the default values.
|
// Set the default values.
|
||||||
memset (device->fingerprint, 0, sizeof (device->fingerprint));
|
memset (device->fingerprint, 0, sizeof (device->fingerprint));
|
||||||
|
|
||||||
|
|||||||
@ -114,9 +114,6 @@ shearwater_predator_device_custom_open (dc_device_t **out, dc_context_t *context
|
|||||||
return DC_STATUS_NOMEMORY;
|
return DC_STATUS_NOMEMORY;
|
||||||
}
|
}
|
||||||
|
|
||||||
// Initialize the base class.
|
|
||||||
device_init (&device->base.base, context, &shearwater_predator_device_vtable);
|
|
||||||
|
|
||||||
// Set the default values.
|
// Set the default values.
|
||||||
memset (device->fingerprint, 0, sizeof (device->fingerprint));
|
memset (device->fingerprint, 0, sizeof (device->fingerprint));
|
||||||
|
|
||||||
|
|||||||
@ -139,10 +139,8 @@ shearwater_common_parser_create (dc_parser_t **out, dc_context_t *context, unsig
|
|||||||
parser->petrel = petrel;
|
parser->petrel = petrel;
|
||||||
parser->serial = serial;
|
parser->serial = serial;
|
||||||
if (petrel) {
|
if (petrel) {
|
||||||
parser_init (&parser->base, context, &shearwater_petrel_parser_vtable);
|
|
||||||
parser->samplesize = SZ_SAMPLE_PETREL;
|
parser->samplesize = SZ_SAMPLE_PETREL;
|
||||||
} else {
|
} else {
|
||||||
parser_init (&parser->base, context, &shearwater_predator_parser_vtable);
|
|
||||||
parser->samplesize = SZ_SAMPLE_PREDATOR;
|
parser->samplesize = SZ_SAMPLE_PREDATOR;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user