mirror of
https://github.com/smittix/intercept.git
synced 2026-07-07 09:08:12 -07:00
Stabilize scanner progress tracking
This commit is contained in:
@@ -425,19 +425,6 @@ def scanner_loop_power():
|
||||
'-d', str(device),
|
||||
]
|
||||
|
||||
# Emit an initial progress update for UI
|
||||
try:
|
||||
scanner_current_freq = start_mhz
|
||||
scanner_queue.put_nowait({
|
||||
'type': 'scan_update',
|
||||
'frequency': scanner_current_freq,
|
||||
'level': 0,
|
||||
'threshold': int(float(scanner_config.get('snr_threshold', 12)) * 100),
|
||||
'detected': False
|
||||
})
|
||||
except queue.Full:
|
||||
pass
|
||||
|
||||
try:
|
||||
proc = subprocess.Popen(cmd, stdout=subprocess.PIPE, stderr=subprocess.DEVNULL)
|
||||
scanner_power_process = proc
|
||||
|
||||
Reference in New Issue
Block a user