trivial: Allow calling ->probe if the GUsbDevice changes

This commit is contained in:
Richard Hughes 2017-11-30 20:56:33 +00:00
parent 4a036018f7
commit 460f0b123c

View File

@ -356,6 +356,9 @@ fu_usb_device_set_dev (FuUsbDevice *device, GUsbDevice *usb_device)
g_return_if_fail (FU_IS_USB_DEVICE (device));
/* need to re-probe hardware */
priv->done_probe = FALSE;
/* allow replacement */
g_set_object (&priv->usb_device, usb_device);
if (usb_device == NULL) {