<feed xmlns='http://www.w3.org/2005/Atom'>
<title>qlprint, branch fixes</title>
<subtitle>Unnamed repository; edit this file 'description' to name the repository.
</subtitle>
<link rel='alternate' type='text/html' href='https://git.2e8.dk/qlprint/'/>
<entry>
<title>Improve error code formatting</title>
<updated>2026-01-12T19:06:14+00:00</updated>
<author>
<name>Asbjørn Sloth Tønnesen</name>
<email>ast@2e8.dk</email>
</author>
<published>2026-01-12T19:04:08+00:00</published>
<link rel='alternate' type='text/html' href='https://git.2e8.dk/qlprint/commit/?id=916ad16dfa5e61f79b8c16a6e5bb6a288f3f1015'/>
<id>916ad16dfa5e61f79b8c16a6e5bb6a288f3f1015</id>
<content type='text'>
For text output, allocate exactly the right buffer size.

For JSON output, return error codes as an array, not just a
concatinated text string.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
For text output, allocate exactly the right buffer size.

For JSON output, return error codes as an array, not just a
concatinated text string.
</pre>
</div>
</content>
</entry>
<entry>
<title>Add JSON output</title>
<updated>2025-12-05T21:51:57+00:00</updated>
<author>
<name>Asbjørn Sloth Tønnesen</name>
<email>ast@2e8.dk</email>
</author>
<published>2025-12-05T21:50:06+00:00</published>
<link rel='alternate' type='text/html' href='https://git.2e8.dk/qlprint/commit/?id=a8c1c1f01c0443e5ed884316da618634c7aebe93'/>
<id>a8c1c1f01c0443e5ed884316da618634c7aebe93</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>ql: optimize USB data flow</title>
<updated>2025-12-04T19:12:00+00:00</updated>
<author>
<name>Asbjørn Sloth Tønnesen</name>
<email>ast@2e8.dk</email>
</author>
<published>2023-07-09T00:18:48+00:00</published>
<link rel='alternate' type='text/html' href='https://git.2e8.dk/qlprint/commit/?id=cc48231d44d5ff59371acc46373adccf16cac149'/>
<id>cc48231d44d5ff59371acc46373adccf16cac149</id>
<content type='text'>
Write column data into a buffer, and only write
to USB once the buffer is filled past threshould.

This reduces the amount of data frames on the USB bus,
in a 429x336 sample image it was reduced from 1000 frames
to about 100 frames, where the image data is only 20 frames,
while the rest is mainly polling for status updates.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Write column data into a buffer, and only write
to USB once the buffer is filled past threshould.

This reduces the amount of data frames on the USB bus,
in a 429x336 sample image it was reduced from 1000 frames
to about 100 frames, where the image data is only 20 frames,
while the rest is mainly polling for status updates.
</pre>
</div>
</content>
</entry>
<entry>
<title>ql: refactor full_write to take ctx</title>
<updated>2023-07-10T21:19:16+00:00</updated>
<author>
<name>Asbjørn Sloth Tønnesen</name>
<email>ast@2e8.dk</email>
</author>
<published>2023-07-10T21:07:23+00:00</published>
<link rel='alternate' type='text/html' href='https://git.2e8.dk/qlprint/commit/?id=cec6695ba5615076f326ce0cd4e5f21fe6341db1'/>
<id>cec6695ba5615076f326ce0cd4e5f21fe6341db1</id>
<content type='text'>
Access to ctx is needed for the next patch
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Access to ctx is needed for the next patch
</pre>
</div>
</content>
</entry>
<entry>
<title>ql: rewrite to non-blocking I/O</title>
<updated>2023-07-10T21:18:49+00:00</updated>
<author>
<name>Asbjørn Sloth Tønnesen</name>
<email>ast@2e8.dk</email>
</author>
<published>2023-07-08T23:34:01+00:00</published>
<link rel='alternate' type='text/html' href='https://git.2e8.dk/qlprint/commit/?id=5f79d6da760e025b6af757242f70f4910901e053'/>
<id>5f79d6da760e025b6af757242f70f4910901e053</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>fix silly usleep(50)</title>
<updated>2023-07-10T19:57:16+00:00</updated>
<author>
<name>Asbjørn Sloth Tønnesen</name>
<email>ast@2e8.dk</email>
</author>
<published>2023-07-09T00:25:25+00:00</published>
<link rel='alternate' type='text/html' href='https://git.2e8.dk/qlprint/commit/?id=834780c4c6512e054c6f7c78b647dc7919cbcab6'/>
<id>834780c4c6512e054c6f7c78b647dc7919cbcab6</id>
<content type='text'>
Increase sleep from 50 μs to 5 ms.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Increase sleep from 50 μs to 5 ms.
</pre>
</div>
</content>
</entry>
<entry>
<title>fix coding style</title>
<updated>2023-07-10T19:53:57+00:00</updated>
<author>
<name>Asbjørn Sloth Tønnesen</name>
<email>ast@2e8.dk</email>
</author>
<published>2023-07-08T22:40:00+00:00</published>
<link rel='alternate' type='text/html' href='https://git.2e8.dk/qlprint/commit/?id=e8ea33f5c777874b25b858df3ef61ca7ebed60ff'/>
<id>e8ea33f5c777874b25b858df3ef61ca7ebed60ff</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>add `make fixstyle`</title>
<updated>2023-07-10T19:53:57+00:00</updated>
<author>
<name>Asbjørn Sloth Tønnesen</name>
<email>ast@2e8.dk</email>
</author>
<published>2023-07-08T22:39:21+00:00</published>
<link rel='alternate' type='text/html' href='https://git.2e8.dk/qlprint/commit/?id=5a72605339cbb275277be76d1259589137d5db6b'/>
<id>5a72605339cbb275277be76d1259589137d5db6b</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Makefile: fix undefined references</title>
<updated>2023-07-10T19:51:28+00:00</updated>
<author>
<name>Asbjørn Sloth Tønnesen</name>
<email>ast@2e8.dk</email>
</author>
<published>2023-07-08T22:26:27+00:00</published>
<link rel='alternate' type='text/html' href='https://git.2e8.dk/qlprint/commit/?id=84feb345eaf2a73abe4d1f9d2155edc058a8e570'/>
<id>84feb345eaf2a73abe4d1f9d2155edc058a8e570</id>
<content type='text'>
Compiling gives the following error, since the library is specified
before the local objects:

$ make
[…]
cc -lpng16  build/main.o build/ql.o build/loadpng.o -o build/qlprint
/usr/bin/ld: build/loadpng.o: in function `loadpng':
…/src/loadpng.c:30: undefined reference to `png_sig_cmp'
/usr/bin/ld: …/src/loadpng.c:35: undefined reference to `png_create_read_struct'
/usr/bin/ld: …/src/loadpng.c:39: undefined reference to `png_create_info_struct'
/usr/bin/ld: …/src/loadpng.c:43: undefined reference to `png_create_info_struct'
[…]
collect2: error: ld returned 1 exit status
make: *** [Makefile:28: build/qlprint] Error 1

After reordering:

$ make
[…]
cc build/main.o build/ql.o build/loadpng.o -lpng16  -o build/qlprint
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Compiling gives the following error, since the library is specified
before the local objects:

$ make
[…]
cc -lpng16  build/main.o build/ql.o build/loadpng.o -o build/qlprint
/usr/bin/ld: build/loadpng.o: in function `loadpng':
…/src/loadpng.c:30: undefined reference to `png_sig_cmp'
/usr/bin/ld: …/src/loadpng.c:35: undefined reference to `png_create_read_struct'
/usr/bin/ld: …/src/loadpng.c:39: undefined reference to `png_create_info_struct'
/usr/bin/ld: …/src/loadpng.c:43: undefined reference to `png_create_info_struct'
[…]
collect2: error: ld returned 1 exit status
make: *** [Makefile:28: build/qlprint] Error 1

After reordering:

$ make
[…]
cc build/main.o build/ql.o build/loadpng.o -lpng16  -o build/qlprint
</pre>
</div>
</content>
</entry>
<entry>
<title>Added support for variable timeout.</title>
<updated>2017-05-31T05:55:23+00:00</updated>
<author>
<name>Johny Mattsson</name>
<email>jmattsson@dius.com.au</email>
</author>
<published>2017-05-31T05:55:23+00:00</published>
<link rel='alternate' type='text/html' href='https://git.2e8.dk/qlprint/commit/?id=39b1f985c9037373a435a0c50e33602a06e26369'/>
<id>39b1f985c9037373a435a0c50e33602a06e26369</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
</feed>
