mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
core: add make_manually_added_dc() function
For reasons of symmetry (there is a is_manually_added_dc() function), create a make_manually_added_dc() function. Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
This commit is contained in:
parent
f687e51d4b
commit
261f07dfa4
5 changed files with 12 additions and 4 deletions
|
@ -868,7 +868,7 @@ static int prepare_data(int data_model, char *serial, dc_family_t dc_fam, device
|
|||
{
|
||||
dev_data->device = NULL;
|
||||
dev_data->context = NULL;
|
||||
if (!data_model){
|
||||
if (!data_model) {
|
||||
dev_data->model = copy_string("manually added dive");
|
||||
dev_data->descriptor = NULL;
|
||||
return DC_STATUS_NODEVICE;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue