Commit 114a5c68 authored by Lu Xu's avatar Lu Xu 👀

promise/plugin/check_sdr_busy: fix no permission to check sdr

parent 8e269cd3
......@@ -25,7 +25,7 @@ class RunPromise(GenericPromise):
return
try:
out = subprocess.check_output([
sdr + '/sdr_util', '-c', sdr_dev, '-d', dma_chan, 'version'], stderr=subprocess.STDOUT)
'sudo', sdr + '/sdr_util', '-c', sdr_dev, '-d', dma_chan, 'version'], stderr=subprocess.STDOUT)
except subprocess.CalledProcessError as e:
if e.returncode == 1 and \
("DMA channel is already opened" in e.output.decode() or \
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment