Add Select for modbus (#3032)
Co-authored-by: Oxan van Leeuwen <oxan@oxanvanleeuwen.nl>
This commit is contained in:
@@ -773,9 +773,11 @@ class MockObj(Expression):
|
||||
return MockObj(f"{self.base} &", "")
|
||||
if name == "ptr":
|
||||
return MockObj(f"{self.base} *", "")
|
||||
if name == "const_ptr":
|
||||
return MockObj(f"{self.base} *const", "")
|
||||
if name == "const":
|
||||
return MockObj(f"const {self.base}", "")
|
||||
raise ValueError("Expected one of ref, ptr, const.")
|
||||
raise ValueError("Expected one of ref, ptr, const_ptr, const.")
|
||||
|
||||
@property
|
||||
def using(self) -> "MockObj":
|
||||
|
||||
Reference in New Issue
Block a user