mirror of
https://git.proxmox.com/git/fwupd
synced 2025-06-08 16:59:30 +00:00
logitech-bulkcontroller: Reset the progress counter when required
This commit is contained in:
parent
9a33c96b7c
commit
b9172ae5c5
@ -833,6 +833,7 @@ fu_logitech_bulkcontroller_device_write_firmware(FuDevice *device,
|
|||||||
&error_local)) {
|
&error_local)) {
|
||||||
no_response_count++;
|
no_response_count++;
|
||||||
g_debug("no response for device info request %u", no_response_count);
|
g_debug("no response for device info request %u", no_response_count);
|
||||||
|
fu_progress_reset(fu_progress_get_child(progress));
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -868,6 +869,7 @@ fu_logitech_bulkcontroller_device_write_firmware(FuDevice *device,
|
|||||||
* explicitly now
|
* explicitly now
|
||||||
*/
|
*/
|
||||||
g_usleep(G_USEC_PER_SEC);
|
g_usleep(G_USEC_PER_SEC);
|
||||||
|
fu_progress_reset(fu_progress_get_child(progress));
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user