mirror of
https://git.proxmox.com/git/fwupd
synced 2025-08-07 16:06:06 +00:00
libdfu: Don't read data from some DfuSe targets
The option bytes section makes no sense to include in the flashed image.
This commit is contained in:
parent
5723c2f643
commit
ba79b07b4f
@ -1858,12 +1858,21 @@ dfu_device_upload (DfuDevice *device,
|
|||||||
/* upload from each target */
|
/* upload from each target */
|
||||||
for (i = 0; i < priv->targets->len; i++) {
|
for (i = 0; i < priv->targets->len; i++) {
|
||||||
DfuTarget *target;
|
DfuTarget *target;
|
||||||
|
const gchar *alt_name;
|
||||||
gulong id1;
|
gulong id1;
|
||||||
gulong id2;
|
gulong id2;
|
||||||
g_autoptr(DfuImage) image = NULL;
|
g_autoptr(DfuImage) image = NULL;
|
||||||
|
|
||||||
/* upload to target and proxy signals */
|
/* upload to target and proxy signals */
|
||||||
target = g_ptr_array_index (priv->targets, i);
|
target = g_ptr_array_index (priv->targets, i);
|
||||||
|
|
||||||
|
/* ignore some target types */
|
||||||
|
alt_name = dfu_target_get_alt_name_for_display (target, NULL);
|
||||||
|
if (g_strcmp0 (alt_name, "Option Bytes") == 0) {
|
||||||
|
g_debug ("ignoring target %s", alt_name);
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
|
||||||
id1 = g_signal_connect (target, "percentage-changed",
|
id1 = g_signal_connect (target, "percentage-changed",
|
||||||
G_CALLBACK (dfu_device_percentage_cb), device);
|
G_CALLBACK (dfu_device_percentage_cb), device);
|
||||||
id2 = g_signal_connect (target, "action-changed",
|
id2 = g_signal_connect (target, "action-changed",
|
||||||
|
Loading…
Reference in New Issue
Block a user