Commit 0888da30 authored by Richard Hughes's avatar Richard Hughes
Browse files

dfu: Include the reset timeout as wValue to fix some hardware

parent edd196c1
......@@ -1104,6 +1104,7 @@ gboolean
dfu_device_detach (DfuDevice *device, GCancellable *cancellable, GError **error)
{
DfuDevicePrivate *priv = GET_PRIVATE (device);
const guint16 timeout_reset_ms = 1000;
g_autoptr(GError) error_local = NULL;
g_return_val_if_fail (DFU_IS_DEVICE (device), FALSE);
......@@ -1153,7 +1154,7 @@ dfu_device_detach (DfuDevice *device, GCancellable *cancellable, GError **error)
G_USB_DEVICE_REQUEST_TYPE_CLASS,
G_USB_DEVICE_RECIPIENT_INTERFACE,
DFU_REQUEST_DETACH,
0,
timeout_reset_ms,
priv->iface_number,
NULL, 0, NULL,
priv->timeout_ms,
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment