#include <atomics.h>
#include <utils.h>
+/* handling uemis Zurich SDA files */
+#include "uemis.h"
+
/*
* I'd love to do a while-loop here for pending events, but
* that seems to screw up with the dive computer reading timing.
va_start(args, fmt);
error = g_error_new_valist(
- g_quark_from_string("divelog"),
+ g_quark_from_string("subsurface"),
DIVE_ERROR_PARSE, fmt, args);
va_end(args);
report_error(error);
device_t *device = NULL;
device_status_t rc;
+ if (data->type == DEVICE_TYPE_UEMIS) {
+ return uemis_import();
+ }
+
rc = device_open(data->devname, data->type, &device);
if (rc != DEVICE_STATUS_SUCCESS) {
error("Unable to open %s (%s)", data->name, data->devname);
{ "Cressi Edy", DEVICE_TYPE_CRESSI_EDY },
{ "Zeagle N2iTiON 3", DEVICE_TYPE_ZEAGLE_N2ITION3 },
{ "Atomics Cobalt", DEVICE_TYPE_ATOMICS_COBALT },
+ { "Uemis Zurich SDA", DEVICE_TYPE_UEMIS },
{ NULL }
};