Commit 6e6135ff authored by Mario Limonciello's avatar Mario Limonciello Committed by Mario Limonciello
Browse files

dell: Add a delay when calling update_prepare

Thundebolt controller usually takes some time to wakeup and without
this the update will most likely fail.
parent eb3c742a
......@@ -826,7 +826,10 @@ fu_plugin_update_prepare (FuPlugin *plugin,
FuDevice *device,
GError **error)
{
return fu_dell_toggle_flash (device, error, TRUE);
if (!fu_dell_toggle_flash (device, error, TRUE))
return FALSE;
g_usleep (DELL_FLASH_MODE_DELAY * G_USEC_PER_SEC);
return TRUE;
}
gboolean
......
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