diff --git a/src/stitching_scanner.py b/src/stitching_scanner.py index feebda0..d07d097 100644 --- a/src/stitching_scanner.py +++ b/src/stitching_scanner.py @@ -462,8 +462,8 @@ class StitchingScanner: stop_reason = 'max_dim' break - if abs(total_x) >= max_mosaic_width: - self.log(f"Max dimension reached ({max_mosaic_width}px)") + if abs(total_x) >= self.config.max_mosaic_width: + self.log(f"Max dimension reached ({self.config.max_mosaic_width}px)") stop_reason = 'max_dim' break # Pulse motor