From 058cfc67751e14dc613986f5d80b913a95d8fc69 Mon Sep 17 00:00:00 2001 From: Richard Hughes Date: Mon, 6 Dec 2021 16:40:32 +0000 Subject: [PATCH] vli: Set up some more progress values correctly --- plugins/vli/fu-vli-device.c | 1 - plugins/vli/fu-vli-usbhub-device.c | 7 +++---- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/plugins/vli/fu-vli-device.c b/plugins/vli/fu-vli-device.c index a288a58b2..f6c0b767f 100644 --- a/plugins/vli/fu-vli-device.c +++ b/plugins/vli/fu-vli-device.c @@ -288,7 +288,6 @@ fu_vli_device_spi_write(FuVliDevice *self, /* progress */ fu_progress_set_id(progress, G_STRLOC); - fu_progress_add_flag(progress, FU_PROGRESS_FLAG_GUESSED); fu_progress_add_step(progress, FWUPD_STATUS_DEVICE_WRITE, 99); fu_progress_add_step(progress, FWUPD_STATUS_DEVICE_WRITE, 1); /* chk0 */ diff --git a/plugins/vli/fu-vli-usbhub-device.c b/plugins/vli/fu-vli-usbhub-device.c index 3a5f77322..3177a1707 100644 --- a/plugins/vli/fu-vli-usbhub-device.c +++ b/plugins/vli/fu-vli-usbhub-device.c @@ -1199,11 +1199,10 @@ static void fu_vli_usbhub_device_set_progress(FuDevice *self, FuProgress *progress) { fu_progress_set_id(progress, G_STRLOC); - fu_progress_add_flag(progress, FU_PROGRESS_FLAG_GUESSED); - fu_progress_add_step(progress, FWUPD_STATUS_DEVICE_RESTART, 2); /* detach */ - fu_progress_add_step(progress, FWUPD_STATUS_DEVICE_WRITE, 94); /* write */ + fu_progress_add_step(progress, FWUPD_STATUS_DEVICE_RESTART, 0); /* detach */ + fu_progress_add_step(progress, FWUPD_STATUS_DEVICE_WRITE, 92); /* write */ fu_progress_add_step(progress, FWUPD_STATUS_DEVICE_RESTART, 2); /* attach */ - fu_progress_add_step(progress, FWUPD_STATUS_DEVICE_BUSY, 2); /* reload */ + fu_progress_add_step(progress, FWUPD_STATUS_DEVICE_BUSY, 7); /* reload */ } static void