Skip to content

Commit

Permalink
Do not raise an exception in "_check_statusword_configured" just log …
Browse files Browse the repository at this point in the history
…it as a warning (#268)
  • Loading branch information
Lauszus authored Sep 13, 2021
1 parent 5202d1e commit ff8b5ca
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion canopen/profiles/p402.py
Original file line number Diff line number Diff line change
Expand Up @@ -271,7 +271,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))

Expand Down

0 comments on commit ff8b5ca

Please sign in to comment.