mirror of
https://git.proxmox.com/git/fwupd
synced 2025-08-17 03:21:57 +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]);
|
lu_device_set_hidpp_version (device, msg->data[0]);
|
||||||
}
|
}
|
||||||
|
|
||||||
/* this device is active right now */
|
/* success */
|
||||||
lu_device_add_flag (device, LU_DEVICE_FLAG_ACTIVE);
|
|
||||||
return TRUE;
|
return TRUE;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -280,7 +279,8 @@ lu_device_peripheral_probe (LuDevice *device, GError **error)
|
|||||||
if (idx != 0x00)
|
if (idx != 0x00)
|
||||||
lu_device_add_flag (device, LU_DEVICE_FLAG_REQUIRES_ATTACH);
|
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;
|
return TRUE;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user