Skip to content

Commit ff8b5ca

Browse files
authored
Do not raise an exception in "_check_statusword_configured" just log it as a warning (#268)
1 parent 5202d1e commit ff8b5ca

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

canopen/profiles/p402.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -271,7 +271,7 @@ def _check_controlword_configured(self):
271271

272272
def _check_statusword_configured(self):
273273
if 0x6041 not in self.tpdo_values: # Statusword
274-
raise ValueError(
274+
logger.warning(
275275
"Statusword not configured in node {0}'s PDOs. Using SDOs can cause slow performance.".format(
276276
self.id))
277277

0 commit comments

Comments
 (0)