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:
Richard Hughes 2019-11-26 11:53:00 +00:00
parent aba4a5a2bd
commit ed3f6cfd4f

View File

@ -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;
}