From 9a86bc23beed5b8d714b15ebfdc6e114026711e5 Mon Sep 17 00:00:00 2001 From: Jakob Ketterl Date: Sun, 19 Apr 2020 23:36:35 +0200 Subject: [PATCH] make hackrf sleep for 1 second on restarts (device is not released immediately) --- owrx/source/hackrf.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/owrx/source/hackrf.py b/owrx/source/hackrf.py index 23ffcc8..f59a448 100644 --- a/owrx/source/hackrf.py +++ b/owrx/source/hackrf.py @@ -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)