summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAsbjørn Sloth Tønnesen <ast@2e8.dk>2023-07-09 00:25:25 +0000
committerAsbjørn Sloth Tønnesen <ast@2e8.dk>2023-07-10 19:57:16 +0000
commit834780c4c6512e054c6f7c78b647dc7919cbcab6 (patch)
treeec4117a728e9a490589241c58e092c7443bf8a56
parente8ea33f5c777874b25b858df3ef61ca7ebed60ff (diff)
downloadqlprint-834780c4c6512e054c6f7c78b647dc7919cbcab6.tar.gz
qlprint-834780c4c6512e054c6f7c78b647dc7919cbcab6.tar.xz
qlprint-834780c4c6512e054c6f7c78b647dc7919cbcab6.zip
fix silly usleep(50)
Increase sleep from 50 μs to 5 ms.
-rw-r--r--src/main.c2
1 files changed, 1 insertions, 1 deletions
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");