mirror of
https://git.proxmox.com/git/fwupd
synced 2025-05-29 20:32:50 +00:00
unifying: Clear the feature map when a device is reprobed
This commit is contained in:
parent
695d01ed93
commit
f21cda4fed
@ -712,6 +712,12 @@ gboolean
|
||||
lu_device_probe (LuDevice *device, GError **error)
|
||||
{
|
||||
LuDeviceClass *klass = LU_DEVICE_GET_CLASS (device);
|
||||
LuDevicePrivate *priv = GET_PRIVATE (device);
|
||||
|
||||
/* clear the feature map (leaving only the root) */
|
||||
g_ptr_array_set_size (priv->feature_index, 1);
|
||||
|
||||
/* probe the hardware */
|
||||
if (klass->probe != NULL)
|
||||
return klass->probe (device, error);
|
||||
return TRUE;
|
||||
|
Loading…
Reference in New Issue
Block a user