mirror of
https://github.com/schoebel/mars
synced 2024-12-12 18:01:21 +00:00
copy: reset limiter
This commit is contained in:
parent
ff2c948247
commit
25da408d66
@ -740,6 +740,8 @@ static int _copy_thread(void *data)
|
|||||||
brick->verify_ok_count = 0;
|
brick->verify_ok_count = 0;
|
||||||
brick->verify_error_count = 0;
|
brick->verify_error_count = 0;
|
||||||
|
|
||||||
|
if (brick->copy_limiter)
|
||||||
|
mars_limit_reset(brick->copy_limiter);
|
||||||
_update_percent(brick, true);
|
_update_percent(brick, true);
|
||||||
|
|
||||||
mars_power_led_on((void*)brick, true);
|
mars_power_led_on((void*)brick, true);
|
||||||
@ -774,6 +776,9 @@ static int _copy_thread(void *data)
|
|||||||
brick->trigger = false;
|
brick->trigger = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (brick->copy_limiter)
|
||||||
|
mars_limit_reset(brick->copy_limiter);
|
||||||
|
|
||||||
/* check for fatal consistency errors */
|
/* check for fatal consistency errors */
|
||||||
if (brick->copy_error == -EMEDIUMTYPE) {
|
if (brick->copy_error == -EMEDIUMTYPE) {
|
||||||
/* reset the whole area */
|
/* reset the whole area */
|
||||||
|
Loading…
Reference in New Issue
Block a user