mirror of
https://git.proxmox.com/git/fwupd
synced 2025-08-14 09:14:40 +00:00
dfu: Do not try to verify the element write if upload is unsupported
This commit is contained in:
parent
64179e42af
commit
8232d250a2
@ -1585,7 +1585,8 @@ dfu_target_download_element (DfuTarget *target,
|
||||
}
|
||||
|
||||
/* verify */
|
||||
if (flags & DFU_TARGET_TRANSFER_FLAG_VERIFY) {
|
||||
if (flags & DFU_TARGET_TRANSFER_FLAG_VERIFY &&
|
||||
dfu_device_has_attribute (priv->device, DFU_DEVICE_ATTRIBUTE_CAN_UPLOAD)) {
|
||||
GBytes *bytes;
|
||||
GBytes *bytes_tmp;
|
||||
g_autoptr(DfuElement) element_tmp = NULL;
|
||||
|
Loading…
Reference in New Issue
Block a user