dfu: Allow wildcarded VIDs and PIDs when loading from a .cab file

The logic is that this will have been matched using the GUID before it gets to
the writing stage.
This commit is contained in:
Richard Hughes 2017-11-15 15:19:42 +00:00
parent fd4697188a
commit ee46fb6d09

View File

@ -372,7 +372,9 @@ fu_plugin_update (FuPlugin *plugin,
DFU_FIRMWARE_PARSE_FLAG_NONE, error))
return FALSE;
if (!dfu_device_download (device, dfu_firmware,
DFU_TARGET_TRANSFER_FLAG_VERIFY,
DFU_TARGET_TRANSFER_FLAG_VERIFY |
DFU_TARGET_TRANSFER_FLAG_WILDCARD_VID |
DFU_TARGET_TRANSFER_FLAG_WILDCARD_PID,
NULL, error))
return FALSE;