@@ -432,7 +432,7 @@ def op_mode(self):
432432 code = self .tpdo_values [0x6061 ]
433433 except KeyError :
434434 logger .warning ('The object 0x6061 is not a configured TPDO, fallback to SDO' )
435- # NOTE: Blocking - OK. Protected in SdoClient
435+ # NOTE: Blocking - protected in SdoClient
436436 code = self .sdo [0x6061 ].raw
437437 return OperationMode .CODE2NAME [code ]
438438
@@ -445,13 +445,13 @@ def op_mode(self, mode):
445445 f'Operation mode { mode } not suppported on node { self .id } .' )
446446 # Update operation mode in RPDO if possible, fall back to SDO
447447 if 0x6060 in self .rpdo_pointers :
448- # NOTE: Blocking - OK. Protected in SdoClient
448+ # NOTE: Blocking - protected in SdoClient
449449 self .rpdo_pointers [0x6060 ].raw = OperationMode .NAME2CODE [mode ]
450450 pdo = self .rpdo_pointers [0x6060 ].pdo_parent
451451 if not pdo .is_periodic :
452452 pdo .transmit ()
453453 else :
454- # NOTE: Blocking - OK. Protected in SdoClient
454+ # NOTE: Blocking - protected in SdoClient
455455 self .sdo [0x6060 ].raw = OperationMode .NAME2CODE [mode ]
456456 timeout = time .monotonic () + self .TIMEOUT_SWITCH_OP_MODE
457457 # NOTE: Blocking getter
@@ -470,7 +470,7 @@ def _clear_target_values(self):
470470 # [target velocity, target position, target torque]
471471 for target_index in [0x60FF , 0x607A , 0x6071 ]:
472472 if target_index in self .sdo .keys ():
473- # NOTE: Blocking - OK. Protected in SdoClient
473+ # NOTE: Blocking - protected in SdoClient
474474 self .sdo [target_index ].raw = 0
475475
476476 # NOTE: Blocking
@@ -486,7 +486,7 @@ def is_op_mode_supported(self, mode):
486486 """
487487 if not hasattr (self , '_op_mode_support' ):
488488 # Cache value only on first lookup, this object should never change.
489- # NOTE: Blocking - OK. Protected in SdoClient
489+ # NOTE: Blocking - protected in SdoClient
490490 self ._op_mode_support = self .sdo [0x6502 ].raw
491491 logger .info ('Caching node %s supported operation modes 0x%04X' ,
492492 self .id , self ._op_mode_support )
@@ -502,7 +502,7 @@ def on_TPDOs_update_callback(self, mapobject: PdoMap):
502502 # NOTE: Callback. Called from another thread unless async
503503 for obj in mapobject :
504504 # FIXME: Is this thread-safe?
505- # NOTE: Blocking - OK. Protected in SdoClient
505+ # NOTE: Blocking - protected in SdoClient
506506 self .tpdo_values [obj .index ] = obj .raw
507507
508508 # NOTE: Blocking getter on errors
@@ -517,7 +517,7 @@ def statusword(self):
517517 return self .tpdo_values [0x6041 ]
518518 except KeyError :
519519 logger .warning ('The object 0x6041 is not a configured TPDO, fallback to SDO' )
520- # NOTE: Blocking - OK. Protected in SdoClient
520+ # NOTE: Blocking - protected in SdoClient
521521 return self .sdo [0x6041 ].raw
522522
523523 # NOTE: Blocking, conditional
@@ -540,7 +540,7 @@ def check_statusword(self, timeout=None):
540540 if timestamp is None :
541541 raise RuntimeError ('Timeout waiting for updated statusword' )
542542 else :
543- # NOTE: Blocking - OK. Protected in SdoClient
543+ # NOTE: Blocking - protected in SdoClient
544544 return self .sdo [0x6041 ].raw
545545 # NOTE: Blocking getter on errors
546546 return self .statusword
@@ -558,13 +558,13 @@ def controlword(self):
558558 @controlword .setter
559559 def controlword (self , value ):
560560 if 0x6040 in self .rpdo_pointers :
561- # NOTE: Blocking - OK. Protected in SdoClient
561+ # NOTE: Blocking - protected in SdoClient
562562 self .rpdo_pointers [0x6040 ].raw = value
563563 pdo = self .rpdo_pointers [0x6040 ].pdo_parent
564564 if not pdo .is_periodic :
565565 pdo .transmit ()
566566 else :
567- # NOTE: Blocking - OK. Protected in SdoClient
567+ # NOTE: Blocking - protected in SdoClient
568568 self .sdo [0x6040 ].raw = value
569569
570570 # NOTE: Blocking getter on errors
0 commit comments