mirror of
https://git.proxmox.com/git/fwupd
synced 2025-08-05 19:48:47 +00:00
synaptics-prometheus: Manually set the bootloader mode when attaching
The fingerprint reader device doesn't actually disconnect and reconnect and so the FuDevice->setup() vfunc never gets called.
This commit is contained in:
parent
aba4a5a2bd
commit
ed3f6cfd4f
@ -394,6 +394,7 @@ fu_synaprom_device_attach (FuDevice *device, GError **error)
|
||||
g_prefix_error (error, "failed to force-reset device: ");
|
||||
return FALSE;
|
||||
}
|
||||
fu_device_remove_flag (device, FWUPD_DEVICE_FLAG_IS_BOOTLOADER);
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
@ -428,6 +429,7 @@ fu_synaprom_device_detach (FuDevice *device, GError **error)
|
||||
g_prefix_error (error, "failed to force-reset device: ");
|
||||
return FALSE;
|
||||
}
|
||||
fu_device_add_flag (device, FWUPD_DEVICE_FLAG_IS_BOOTLOADER);
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user