make hackrf sleep for 1 second on restarts (device is not released
immediately)
This commit is contained in:
parent
5e6b45eaec
commit
9a86bc23be
@ -1,5 +1,6 @@
|
|||||||
from .direct import DirectSource
|
from .direct import DirectSource
|
||||||
from owrx.command import Option
|
from owrx.command import Option
|
||||||
|
import time
|
||||||
|
|
||||||
|
|
||||||
class HackrfSource(DirectSource):
|
class HackrfSource(DirectSource):
|
||||||
@ -17,3 +18,6 @@ class HackrfSource(DirectSource):
|
|||||||
|
|
||||||
def getFormatConversion(self):
|
def getFormatConversion(self):
|
||||||
return ["csdr convert_s8_f"]
|
return ["csdr convert_s8_f"]
|
||||||
|
|
||||||
|
def sleepOnRestart(self):
|
||||||
|
time.sleep(1)
|
||||||
|
Loading…
Reference in New Issue
Block a user