On 03-06-14 17:07, Joshua Joseph wrote:
This patch implements Jef's suggestion on the previous patches.rc = dc_device_open(&data->device, data->context, data->descriptor, data->devname); if (rc == DC_STATUS_SUCCESS) { - if (vendor.trimmed() == "Heinrichs Weikamp") { + if (dc_device_get_type(data->device) == DC_FAMILY_HW_OSTC3) { unsigned char hw_data[10]; hw_frog_device_version(data->device, hw_data, 10);
This part is still wrong. If you call hw_frog_device_version, you should check for DC_FAMILY_HW_FROG. Otherwise the call will always fail with DC_STATUS_INVALIDARGS.
Jef _______________________________________________ subsurface mailing list [email protected] http://lists.hohndel.org/cgi-bin/mailman/listinfo/subsurface
