Commit ee18968b authored by Richard Hughes's avatar Richard Hughes
Browse files

dfu: Do not try to verify the element write if upload is unsupported

parent 1dad3673
......@@ -1623,7 +1623,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;
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment