Add a separate transport type for USB HID
This commit is contained in:
parent
58eebf4ece
commit
37392a03f2
@ -33,6 +33,7 @@ typedef enum dc_transport_t {
|
||||
DC_TRANSPORT_NONE,
|
||||
DC_TRANSPORT_SERIAL,
|
||||
DC_TRANSPORT_USB,
|
||||
DC_TRANSPORT_USBHID,
|
||||
DC_TRANSPORT_IRDA,
|
||||
DC_TRANSPORT_BLUETOOTH
|
||||
} dc_transport_t;
|
||||
|
||||
@ -428,7 +428,7 @@ dc_descriptor_get_transport (dc_descriptor_t *descriptor)
|
||||
if (descriptor->type == DC_FAMILY_ATOMICS_COBALT)
|
||||
return DC_TRANSPORT_USB;
|
||||
else if (descriptor->type == DC_FAMILY_SUUNTO_EONSTEEL)
|
||||
return DC_TRANSPORT_USB;
|
||||
return DC_TRANSPORT_USBHID;
|
||||
else if (descriptor->type == DC_FAMILY_UWATEC_SMART)
|
||||
return DC_TRANSPORT_IRDA;
|
||||
else
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user