From a9a9a8ac845ae9481dbe7c8445b45eb5b28cdf09 Mon Sep 17 00:00:00 2001 From: Martin Braun Date: Wed, 18 May 2022 17:23:12 +0200 Subject: mpm: x4xx: Make get_chdr_link_types() more generic This code was copy/pasta'd from N3x0. In theory, X410 can have more options regarding streaming than UDP, although for now, this function returns the exact same as before, it's just no longer hard coded. --- mpm/python/usrp_mpm/periph_manager/x4xx.py | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'mpm') diff --git a/mpm/python/usrp_mpm/periph_manager/x4xx.py b/mpm/python/usrp_mpm/periph_manager/x4xx.py index e72b2e41e..fdebaeb3c 100644 --- a/mpm/python/usrp_mpm/periph_manager/x4xx.py +++ b/mpm/python/usrp_mpm/periph_manager/x4xx.py @@ -718,13 +718,12 @@ class x4xx(ZynqComponents, PeriphManagerBase): ########################################################################### # Transport API ########################################################################### - # pylint: disable=no-self-use def get_chdr_link_types(self): """ - This will only ever return a single item (udp). + Return a list of ways how UHD can connect to the X4xx. See + PeriphManagerBase.get_chdr_link_types() for more docs. """ - return ["udp"] - # pylint: enable=no-self-use + return list(self._xport_mgrs.keys()) def get_chdr_link_options(self, xport_type): """ -- cgit v1.2.3