From 87b65cf7ab9754d5361cc87d98b013d3c2993405 Mon Sep 17 00:00:00 2001 From: Martin Braun Date: Tue, 20 Apr 2021 17:24:18 +0200 Subject: mpm: periph_mgr: Demote "no SPI nodes" warning When there are SPI nodes declared for a daughterboard, MPM will emit a warning: "No SPI nodes for dboard". The warning is misleading, because this only occurs when no SPI nodes where *declared*, not when they were declared but not found. This is entirely normal for USRPs where the daughterboards do not have SPI nodes, and thus, not even worth a debug statement. --- mpm/python/usrp_mpm/periph_manager/base.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'mpm') diff --git a/mpm/python/usrp_mpm/periph_manager/base.py b/mpm/python/usrp_mpm/periph_manager/base.py index a1c5e4d4a..47a356012 100644 --- a/mpm/python/usrp_mpm/periph_manager/base.py +++ b/mpm/python/usrp_mpm/periph_manager/base.py @@ -487,7 +487,7 @@ class PeriphManagerBase(object): self.log.trace("Found spidev nodes: {0}".format(spi_nodes)) else: spi_nodes = [] - self.log.warning("No SPI nodes for dboard %d.", dboard_idx) + self.log.trace("No SPI nodes for dboard %d.", dboard_idx) dboard_info.update({ 'spi_nodes': spi_nodes, 'default_args': default_args, -- cgit v1.2.3