mirror of
https://git.proxmox.com/git/fwupd
synced 2025-08-16 12:20:05 +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));
|
g_return_if_fail (FU_IS_USB_DEVICE (device));
|
||||||
|
|
||||||
|
/* need to re-probe hardware */
|
||||||
|
priv->done_probe = FALSE;
|
||||||
|
|
||||||
/* allow replacement */
|
/* allow replacement */
|
||||||
g_set_object (&priv->usb_device, usb_device);
|
g_set_object (&priv->usb_device, usb_device);
|
||||||
if (usb_device == NULL) {
|
if (usb_device == NULL) {
|
||||||
|
Loading…
Reference in New Issue
Block a user