This is an automated email from the ASF dual-hosted git repository.
hutcheb pushed a commit to branch develop
in repository https://gitbox.apache.org/repos/asf/plc4x.git
The following commit(s) were added to refs/heads/develop by this push:
new 4635f4855d feat(plc4py/umas): Remove lower case transform on variables
4635f4855d is described below
commit 4635f4855df349b0e986534a1667d6dc7f0ef447
Author: hutcheb <[email protected]>
AuthorDate: Mon Oct 14 21:49:00 2024 +0800
feat(plc4py/umas): Remove lower case transform on variables
---
plc4py/plc4py/drivers/umas/UmasDevice.py | 4 ++--
plc4py/plc4py/spi/generation/WriteBuffer.py | 2 +-
2 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/plc4py/plc4py/drivers/umas/UmasDevice.py
b/plc4py/plc4py/drivers/umas/UmasDevice.py
index 96f854d8ea..5eb104143e 100644
--- a/plc4py/plc4py/drivers/umas/UmasDevice.py
+++ b/plc4py/plc4py/drivers/umas/UmasDevice.py
@@ -362,7 +362,7 @@ class UmasDevice:
)
tags: Dict[str, UmasUnlocatedVariableReference] = {}
for variable in variable_list.records:
- tags[variable.value.lower()] = variable
+ tags[variable.value] = variable
return variable_list.next_address, tags
async def _send_read_variable_request(
@@ -421,7 +421,7 @@ class UmasDevice:
for kea, tag in request.tags.items():
umas_tag = cast(UmasTag, tag)
base_tag_name = umas_tag.tag_name.split(".")[0]
- variable = self.variables[base_tag_name.lower()]
+ variable = self.variables[base_tag_name]
if byte_count + variable.get_byte_length() > self.max_frame_size:
current_list_index += 1
diff --git a/plc4py/plc4py/spi/generation/WriteBuffer.py
b/plc4py/plc4py/spi/generation/WriteBuffer.py
index ac98cd32c4..b6519f5ee4 100644
--- a/plc4py/plc4py/spi/generation/WriteBuffer.py
+++ b/plc4py/plc4py/spi/generation/WriteBuffer.py
@@ -437,7 +437,7 @@ class WriteBufferXmlBased(WriteBuffer, metaclass=ABCMeta):
def write_bit(self, value: bool, logical_name: str = "", **kwargs) -> None:
data_type: str = "bit"
- data: str = str(value).lower()
+ data: str = str(value)
if "bit_length" in kwargs:
kwargs["bit_length"] = str(kwargs["bit_length"])
else: