Skip to content

Commit d4e7c71

Browse files
committed
fix problem from 1a21371
Commit 1a21371 is broken. For issue #168
1 parent 1a21371 commit d4e7c71

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

canopen/profiles/p402.py

Lines changed: 2 additions & 2 deletions
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)