From 0fa4f7179b952c51137177b191c67501051ade81 Mon Sep 17 00:00:00 2001 From: Lars Amsel Date: Thu, 7 Oct 2021 17:19:06 +0200 Subject: bug: fix channel indexing when reading USRP power the USRP power meter will only receive from a single channel which is configured by the argument parameter. The streamer receive data will therefor alwalys have a single channel. So do not index with chan when passing the streamer to uhd.dsp.signals.get_usrp_power. --- host/examples/python/usrp_power_meter.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'host/examples/python') diff --git a/host/examples/python/usrp_power_meter.py b/host/examples/python/usrp_power_meter.py index ffda7d32e..fc59ae689 100644 --- a/host/examples/python/usrp_power_meter.py +++ b/host/examples/python/usrp_power_meter.py @@ -123,7 +123,7 @@ def main(): while RUN: try: power_dbfs = uhd.dsp.signals.get_usrp_power( - streamer, num_samps=int(args.samps_per_est), chan=chan) + streamer, num_samps=int(args.samps_per_est)) except RuntimeError: # This is a hack b/c the signal handler is not gracefully handling # SIGINT -- cgit v1.2.3