mirror of
https://github.com/jketterl/openwebrx.git
synced 2025-12-06 07:12:09 +01:00
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 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)
|
||||
|
|
|
|||
Loading…
Reference in a new issue