make hackrf sleep for 1 second on restarts (device is not released

immediately)
This commit is contained in:
Jakob Ketterl 2020-04-19 23:36:35 +02:00
parent 5e6b45eaec
commit 9a86bc23be

View File

@ -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)