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:
Richard Hughes 2019-04-29 12:22:57 +01:00 committed by Mario Limonciello
parent 8b222bd557
commit e4e96742e7

View File

@ -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;
}