Skip to content

Commit 14869d4

Browse files
Merge pull request #170 from gsulc/master
fix problem from 1a21371
2 parents 1a21371 + d4e7c71 commit 14869d4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

canopen/profiles/p402.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -375,8 +375,8 @@ def statusword(self):
375375
try:
376376
return self.tpdo_values[0x6041]
377377
except KeyError:
378-
logger.warning('The object 0x6041 is not supported by the PDO mechanism, fallback to SDO')
379-
return self.sdo[0x6041].raw = value
378+
logger.warning('The object 0x6041 is not a configured TPDO, fallback to SDO')
379+
return self.sdo[0x6041].raw
380380

381381
@property
382382
def controlword(self):

0 commit comments

Comments
 (0)