Advertisement
croja

Untitled

Mar 6th, 2020
1,734
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
TCL 0.32 KB | None | 0 0
  1. set unit_found [ adf_avl_check_unique_id_wrap $hw_type $unit_id ]
  2.  
  3. if { $unit_found } {
  4.     # if HWDetector - magic done here:
  5.     set unit [adf_avl_get_unit_by_unique_id_wrap_safe $hw_type $unit_id $conn ]
  6.     # ... work with unit on Regular HW
  7. } else {
  8.     # Unit doesn't exist at all, maybe try to check other HW Type
  9. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement