From 86ab211b84c132e61becc294acfff87e1751908d Mon Sep 17 00:00:00 2001 From: Martin Braun Date: Mon, 17 Aug 2020 13:06:42 +0200 Subject: python: power cal: Minor fixes to power cal code - Fix some typos - Fix incorrect arg name for RFSGPowerGenerator.enable() - Fix case where incorrect args would cause an uncaught TypeError. Now, if USRP is chose as signal generator, but fails to find one, a proper error is shown. --- host/utils/uhd_power_cal.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'host/utils') diff --git a/host/utils/uhd_power_cal.py b/host/utils/uhd_power_cal.py index c598c1058..6be4cc534 100644 --- a/host/utils/uhd_power_cal.py +++ b/host/utils/uhd_power_cal.py @@ -67,7 +67,7 @@ def parse_args(): 'The argument is generally positive, e.g. 30 means 30 dB of attenuation.') parser.add_argument( '--tone-freq', type=float, default=1e6, - help='Frequency of the tone that is generated for Tx measurements. This' + help='Frequency of the tone that is generated for Tx measurements. This ' 'has the same effect as setting an LO offset, except in software.') parser.add_argument( '--antenna', default="*", -- cgit v1.2.3