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 owrx.command import Option
import time
class HackrfSource(DirectSource):
@ -17,3 +18,6 @@ class HackrfSource(DirectSource):
def getFormatConversion(self):
return ["csdr convert_s8_f"]
def sleepOnRestart(self):
time.sleep(1)