From 8c636c213e34d09c9d224050a329f229b43f8d20 Mon Sep 17 00:00:00 2001 From: samerbam Date: Tue, 22 Aug 2023 22:49:35 -0400 Subject: [PATCH] lengthen timeout for image print --- application/thermal_print.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/application/thermal_print.py b/application/thermal_print.py index f28b7c1..426a0ae 100644 --- a/application/thermal_print.py +++ b/application/thermal_print.py @@ -77,7 +77,7 @@ class ThermalPrinter(): def print_sudoku(self): self.p.close() # self.p = Usb(0x0416, 0x5011, None, 4, 0x81, 0x02) - self.p = Usb(idVendor=0x0416, idProduct=0x5011, usb_args=None, timeout=4 , in_ep=0x81, out_ep=0x02) + self.p = Usb(idVendor=0x0416, idProduct=0x5011, usb_args=None, timeout=4000 , in_ep=0x81, out_ep=0x02) convert_to_image(generate_sudoku()) self.p.image("sudoku.png")