From d76ed3de28870e76dca3333edce07e1b5868d5f4 Mon Sep 17 00:00:00 2001 From: Richard Hughes Date: Thu, 15 Nov 2018 15:05:36 +0000 Subject: [PATCH] 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. --- src/fu-engine.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/fu-engine.c b/src/fu-engine.c index a1500f38f..179989842 100644 --- a/src/fu-engine.c +++ b/src/fu-engine.c @@ -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