mirror of
https://github.com/slsdetectorgroup/slsDetectorPackage.git
synced 2026-01-21 23:24:33 +01:00
Merge branch 'developer' into fix/pattern
This commit is contained in:
@@ -1908,6 +1908,8 @@ class Detector(CppDetectorApi):
|
||||
raise ValueError("bit_position must be provided when passing int address")
|
||||
if not isinstance(bit_position, int):
|
||||
raise ValueError("bit_position must be int")
|
||||
if isinstance(bitname_or_addr, int):
|
||||
bitname_or_addr = RegisterAddress(bitname_or_addr)
|
||||
return BitAddress(bitname_or_addr, bit_position)
|
||||
|
||||
# New usage with str or BitAddress
|
||||
|
||||
Reference in New Issue
Block a user