Whoops
This commit is contained in:
parent
ac3377bed1
commit
a766ac528c
1 changed files with 1 additions and 1 deletions
|
@ -59,7 +59,7 @@ int tabby_command_print(int argc, char **argv) {
|
|||
tabby_printer_init(printer);
|
||||
} while (printer->device != TABBY_PRINTER_DEVICE_ID);
|
||||
|
||||
while ((readlen = read(fd, band, sizeof(band))) >= 0) {
|
||||
while ((readlen = read(fd, band, sizeof(band))) > 0) {
|
||||
offset += readlen;
|
||||
|
||||
tabby_printer_band_send(printer, band);
|
||||
|
|
Loading…
Add table
Reference in a new issue