Keep scanner reinit state instance-local

This commit is contained in:
scgbckbone 2026-06-24 17:08:34 +02:00 committed by doc-hex
parent ad2088d231
commit 553405776f
2 changed files with 1 additions and 2 deletions

View File

@ -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

View File

@ -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()