mirror of
https://git.proxmox.com/git/fwupd
synced 2025-08-15 23:29:19 +00:00
trivial: Allow calling ->probe if the GUsbDevice changes
This commit is contained in:
parent
4a036018f7
commit
460f0b123c
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user