mirror of
https://git.proxmox.com/git/fwupd
synced 2025-08-14 06:52:20 +00:00
unifying: Only mark the device as active once the probe has completed
This commit is contained in:
parent
765c679498
commit
72975f0077
@ -211,8 +211,7 @@ lu_device_peripheral_ping (LuDevice *device, GError **error)
|
||||
lu_device_set_hidpp_version (device, msg->data[0]);
|
||||
}
|
||||
|
||||
/* this device is active right now */
|
||||
lu_device_add_flag (device, LU_DEVICE_FLAG_ACTIVE);
|
||||
/* success */
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
@ -280,7 +279,8 @@ lu_device_peripheral_probe (LuDevice *device, GError **error)
|
||||
if (idx != 0x00)
|
||||
lu_device_add_flag (device, LU_DEVICE_FLAG_REQUIRES_ATTACH);
|
||||
|
||||
/* always success */
|
||||
/* this device is active right now */
|
||||
lu_device_add_flag (device, LU_DEVICE_FLAG_ACTIVE);
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user