Keep scanner reinit state instance-local
This commit is contained in:
parent
ad2088d231
commit
553405776f
@ -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
|
||||
|
||||
@ -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()
|
||||
|
||||
Loading…
Reference in New Issue
Block a user