mirror of
https://github.com/ha7ilm/openwebrx.git
synced 2026-04-09 00:13:43 +00:00
make hackrf sleep for 1 second on restarts (device is not released
immediately)
This commit is contained in:
parent
5e6b45eaec
commit
9a86bc23be
1 changed files with 4 additions and 0 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue