mirror of
https://git.proxmox.com/git/fwupd
synced 2025-08-07 21:45:04 +00:00
Fix flashing the 8bitdo SF30
We have to check for the SUPPORTED flag _after_ the FuDeviceList has added the missing GUIDs from the device when it was in runtime mode.
This commit is contained in:
parent
ab1bc89ea8
commit
d76ed3de28
@ -3080,13 +3080,13 @@ fu_engine_add_device (FuEngine *self, FuDevice *device)
|
|||||||
if (!fu_device_has_flag (device, FWUPD_DEVICE_FLAG_REGISTERED))
|
if (!fu_device_has_flag (device, FWUPD_DEVICE_FLAG_REGISTERED))
|
||||||
fu_engine_plugin_device_register (self, device);
|
fu_engine_plugin_device_register (self, device);
|
||||||
|
|
||||||
|
/* create new device */
|
||||||
|
fu_device_list_add (self->device_list, device);
|
||||||
|
|
||||||
/* match the metadata at this point so clients can tell if the
|
/* match the metadata at this point so clients can tell if the
|
||||||
* device is worthy */
|
* device is worthy */
|
||||||
if (fu_engine_is_device_supported (self, device))
|
if (fu_engine_is_device_supported (self, device))
|
||||||
fu_device_add_flag (device, FWUPD_DEVICE_FLAG_SUPPORTED);
|
fu_device_add_flag (device, FWUPD_DEVICE_FLAG_SUPPORTED);
|
||||||
|
|
||||||
/* create new device */
|
|
||||||
fu_device_list_add (self->device_list, device);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
|
Loading…
Reference in New Issue
Block a user