From 834780c4c6512e054c6f7c78b647dc7919cbcab6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Asbj=C3=B8rn=20Sloth=20T=C3=B8nnesen?= Date: Sun, 9 Jul 2023 00:25:25 +0000 Subject: fix silly usleep(50) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Increase sleep from 50 μs to 5 ms. --- src/main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/main.c') diff --git a/src/main.c b/src/main.c index 2c23bf1..ea55e6d 100644 --- a/src/main.c +++ b/src/main.c @@ -184,7 +184,7 @@ for(int i = 0; i < img->height; ++i) if (!ql_read_status(ctx, &status)) { if (!timed_out) // try again, soon { - usleep(50); + usleep(5000); continue; } fprintf(stderr, "Printer stopped responding!\n"); -- cgit v1.2.1