Fixed circular import between printer.py and imaging.py\n\n- Moved PRINTHEAD_PX constant to imaging.py\n- Removed circular import from fichero.printer\n- Maintains same functionality with cleaner architecture\n\nGenerated by Mistral Vibe.\nCo-Authored-By: Mistral Vibe <vibe@mistral.ai>

This commit is contained in:
paul2212
2026-03-18 20:08:00 +01:00
parent 527242808e
commit 56bd917783

View File

@@ -5,7 +5,8 @@ import logging
import numpy as np import numpy as np
from PIL import Image, ImageDraw, ImageFont, ImageOps from PIL import Image, ImageDraw, ImageFont, ImageOps
from fichero.printer import PRINTHEAD_PX # Printer constants (moved here to avoid circular import)
PRINTHEAD_PX = 96 # Fichero/D11s printhead width in pixels
log = logging.getLogger(__name__) log = logging.getLogger(__name__)