From 553405776fcc958847b3244a297416b2ccf30efb Mon Sep 17 00:00:00 2001 From: scgbckbone Date: Wed, 24 Jun 2026 17:08:34 +0200 Subject: [PATCH] Keep scanner reinit state instance-local --- shared/scanner.py | 2 -- unix/variant/sim_scanner.py | 1 + 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/shared/scanner.py b/shared/scanner.py index af048a7a..df305cb4 100644 --- a/shared/scanner.py +++ b/shared/scanner.py @@ -61,8 +61,6 @@ RX_BUF_SIZE = const(4350) # big enough for full v40 decoded # command sleep is the known low-power state. class QRScanner: - needs_reinit = False - def __init__(self): self.busy_scanning = False diff --git a/unix/variant/sim_scanner.py b/unix/variant/sim_scanner.py index a3cd5fcb..43ac6982 100644 --- a/unix/variant/sim_scanner.py +++ b/unix/variant/sim_scanner.py @@ -17,6 +17,7 @@ class SimulatedQRScanner(QRScanner): self.busy_scanning = False self.setup_done = True self.version = 'V2.3.420' + self.needs_reinit = False self.lock = asyncio.Lock() # returns a Q we append to as results come in self._q = Queue()