Support for various app and slic wrapper
This commit is contained in:
@ -11,7 +11,7 @@ class SpectralAnalysis:
|
||||
"""
|
||||
def __init__(self):
|
||||
|
||||
self.bs = BSCache()
|
||||
self.bs = BSCache(100000,10000) # 100 second timeout, size for 100 second data taken
|
||||
self.bs.stop()
|
||||
|
||||
self.channel = ''
|
||||
@ -35,8 +35,7 @@ class SpectralAnalysis:
|
||||
self.bs.pt.running.clear() # for some reason I have to
|
||||
|
||||
def flush(self):
|
||||
with self.bs.pt.queue.mutex:
|
||||
self.bs.pt.queue.queue.clear()
|
||||
self.bs.flush()
|
||||
|
||||
def read(self):
|
||||
data=self.bs.__next__()
|
||||
|
Reference in New Issue
Block a user