From 648d336192f411d9d5f23752994a376e41c66d12 Mon Sep 17 00:00:00 2001 From: Kristian Sloth Lauszus Date: Fri, 10 Sep 2021 10:14:42 +0200 Subject: [PATCH] Do not raise an exception in "_check_statusword_configured" just log it as a warning --- canopen/profiles/p402.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/canopen/profiles/p402.py b/canopen/profiles/p402.py index f4fc0874..d4b8c8b6 100644 --- a/canopen/profiles/p402.py +++ b/canopen/profiles/p402.py @@ -268,7 +268,7 @@ def _check_controlword_configured(self): def _check_statusword_configured(self): if 0x6041 not in self.tpdo_values: # Statusword - raise ValueError( + logger.warning( "Statusword not configured in node {0}'s PDOs. Using SDOs can cause slow performance.".format( self.id))