diff options
Diffstat (limited to 'core/libdivecomputer.c')
-rw-r--r-- | core/libdivecomputer.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/core/libdivecomputer.c b/core/libdivecomputer.c index cd1b69bde..f76a654d4 100644 --- a/core/libdivecomputer.c +++ b/core/libdivecomputer.c @@ -1034,6 +1034,10 @@ const char *do_libdivecomputer_import(device_data_t *data) } else if (!strcmp(data->devname, "ftdi")) { rc = dc_context_set_custom_serial(data->context, &serial_ftdi_ops); #endif +#ifdef SERIAL_CP2130 + } else if (!strcmp(data->devname, "cp2130")) { + rc = dc_context_set_custom_serial(data->context, &cp2130_serial_ops); +#endif } if (rc != DC_STATUS_SUCCESS) { |