copy: reset limiter

This commit is contained in:
Thomas Schoebel-Theuer 2017-06-01 08:34:26 +02:00
parent ff2c948247
commit 25da408d66

View File

@ -740,6 +740,8 @@ static int _copy_thread(void *data)
brick->verify_ok_count = 0;
brick->verify_error_count = 0;
if (brick->copy_limiter)
mars_limit_reset(brick->copy_limiter);
_update_percent(brick, true);
mars_power_led_on((void*)brick, true);
@ -774,6 +776,9 @@ static int _copy_thread(void *data)
brick->trigger = false;
}
if (brick->copy_limiter)
mars_limit_reset(brick->copy_limiter);
/* check for fatal consistency errors */
if (brick->copy_error == -EMEDIUMTYPE) {
/* reset the whole area */