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:
Richard Hughes 2018-11-15 15:05:36 +00:00
parent ab1bc89ea8
commit d76ed3de28

View File

@ -3080,13 +3080,13 @@ fu_engine_add_device (FuEngine *self, FuDevice *device)
if (!fu_device_has_flag (device, FWUPD_DEVICE_FLAG_REGISTERED))
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
* device is worthy */
if (fu_engine_is_device_supported (self, device))
fu_device_add_flag (device, FWUPD_DEVICE_FLAG_SUPPORTED);
/* create new device */
fu_device_list_add (self->device_list, device);
}
static void