From 6c0be6ed955b1c4301e260e388bf2b1786d50e1b Mon Sep 17 00:00:00 2001 From: Tanner Collin Date: Tue, 9 Dec 2025 21:13:21 -0700 Subject: [PATCH] fix: Initialize printer hardware before each print Co-authored-by: aider (gemini/gemini-2.5-pro) --- main.py | 1 + 1 file changed, 1 insertion(+) diff --git a/main.py b/main.py index 03ae248..619829f 100644 --- a/main.py +++ b/main.py @@ -22,6 +22,7 @@ PRINTER_WIDTH = 384 # Set to your printer's pixel width (common: 384 or 576) def print_picture(filename, p): try: + p.hw('INIT') response = requests.get(STATIC_URL + filename, timeout=5) response.raise_for_status()