mirror of
https://git.proxmox.com/git/fwupd
synced 2025-11-02 16:06:17 +00:00
dfu: Reset the forced version during attach and detach
If the runtime DFU version is a vanilla DFU runtime rather than the AVR32 DFU variant then we no longer need to use the override.
This commit is contained in:
parent
8b222bd557
commit
e4e96742e7
@ -1233,6 +1233,7 @@ dfu_device_detach (DfuDevice *device, GError **error)
|
||||
}
|
||||
|
||||
/* success */
|
||||
priv->force_version = 0x0;
|
||||
fu_device_set_status (FU_DEVICE (device), FWUPD_STATUS_IDLE);
|
||||
return TRUE;
|
||||
}
|
||||
@ -1626,6 +1627,7 @@ dfu_device_attach (DfuDevice *device, GError **error)
|
||||
}
|
||||
|
||||
/* success */
|
||||
priv->force_version = 0x0;
|
||||
fu_device_set_status (FU_DEVICE (device), FWUPD_STATUS_IDLE);
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user