[PATCH] import time library, fixes NameError Exception

This is merely a historical archive of years 2008-2021, before the migration to mailman3.

A maintained and still updated list archive can be found at https://lists.osmocom.org/hyperkitty/list/osmocom-sdr@lists.osmocom.org/.

Tony Do tdo at kopismobile.com
Fri Nov 16 17:35:25 UTC 2018


Error Message in osmocom_spectrum_sense command line tool:
    tune: Exception: global name 'time' is not defined
    Undefined command: "tune", Try "help"

Simple fix for the osmocom_spectrum_sense utility, the message queue is
really good at clearing itself, but for low tune/dwell delays the
threads need to sleep while it clears.

---
apps/osmocom_spectrum_sense | 1 +
1 file changed, 1 insertion(+)

diff --git a/apps/osmocom_spectrum_sense b/apps/osmocom_spectrum_sense
index ea365bb..0d280bd 100755
--- a/apps/osmocom_spectrum_sense
+++ b/apps/osmocom_spectrum_sense
@@ -30,6 +30,7 @@ from gnuradio.eng_option import eng_option
from optparse import OptionParser
import sys
import math
+import time
import struct
import threading
from datetime import datetime
-- 
2.19.1



More information about the osmocom-sdr mailing list