diff options
author | Martin Braun <martin.braun@ettus.com> | 2019-01-17 13:47:22 -0800 |
---|---|---|
committer | Brent Stapleton <brent.stapleton@ettus.com> | 2019-01-21 13:41:22 -0800 |
commit | 9e14b1448563416aab1746a186eb63e04c48f480 (patch) | |
tree | e097c771cc2f8831b8f008c58b3c92a0f63623d4 /mpm/python/usrp_mpm | |
parent | 367c88e49e7ce0f9cbc6fff9af22029757688337 (diff) | |
download | uhd-9e14b1448563416aab1746a186eb63e04c48f480.tar.gz uhd-9e14b1448563416aab1746a186eb63e04c48f480.tar.bz2 uhd-9e14b1448563416aab1746a186eb63e04c48f480.zip |
rhodium: Fix some Pylint warnings
Remove some semicolons and superfluous imports.
Diffstat (limited to 'mpm/python/usrp_mpm')
-rw-r--r-- | mpm/python/usrp_mpm/dboard_manager/rhodium.py | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/mpm/python/usrp_mpm/dboard_manager/rhodium.py b/mpm/python/usrp_mpm/dboard_manager/rhodium.py index 9b9086c20..70bf8c544 100644 --- a/mpm/python/usrp_mpm/dboard_manager/rhodium.py +++ b/mpm/python/usrp_mpm/dboard_manager/rhodium.py @@ -9,8 +9,6 @@ Rhodium dboard implementation module from __future__ import print_function import os -import threading -from six import iterkeys, iteritems from usrp_mpm import lib # Pulls in everything from C++-land from usrp_mpm.dboard_manager import DboardManagerBase from usrp_mpm.dboard_manager.rh_periphs import TCA6408, FPGAtoDbGPIO, FPGAtoLoDist @@ -509,14 +507,14 @@ class Rhodium(BfrfsEEPROM, DboardManagerBase): Enables or disables the TX lowband LO output from the LMK on the daughterboard. """ - self.lmk.enable_tx_lb_lo(enable); + self.lmk.enable_tx_lb_lo(enable) def enable_rx_lowband_lo(self, enable): """ Enables or disables the RX lowband LO output from the LMK on the daughterboard. """ - self.lmk.enable_rx_lb_lo(enable); + self.lmk.enable_rx_lb_lo(enable) ########################################################################## @@ -527,7 +525,7 @@ class Rhodium(BfrfsEEPROM, DboardManagerBase): """ Debug for accessing the CPLD via the RPC shell. """ - self.log.trace("CPLD Signature: 0x{:X}".format(self.cpld.peek(0x00))) + self.log.trace("CPLD Signature: 0x{:X}".format(self.cpld.peek16(0x00))) revision_msb = self.cpld.peek16(0x04) self.log.trace("CPLD Revision: 0x{:X}" .format(self.cpld.peek16(0x03) | (revision_msb << 16))) @@ -591,7 +589,7 @@ class Rhodium(BfrfsEEPROM, DboardManagerBase): Debug for reading out all JESD core registers via RPC shell """ with open_uio( - label="dboard-regs-{}".format(slot_idx), + label="dboard-regs-{}".format(self.slot_idx), read_only=False ) as radio_regs: for i in range(0x2000, 0x2110, 0x10): |