mirror of
https://github.com/onyx-and-iris/vban-cmd-python.git
synced 2025-01-18 18:40:47 +00:00
Update dataclass.py
This commit is contained in:
parent
855cb746b9
commit
c0d19b6663
@ -177,7 +177,7 @@ class VBAN_VMRT_Packet_Data:
|
|||||||
def striplabels(self) -> tuple:
|
def striplabels(self) -> tuple:
|
||||||
"""returns tuple of strip labels"""
|
"""returns tuple of strip labels"""
|
||||||
return tuple(
|
return tuple(
|
||||||
self._stripLabelUTF8c60[i : i + 60].decode("ascii")
|
self._stripLabelUTF8c60[i : i + 60].decode("ascii").split("\x00")[0]
|
||||||
for i in range(0, 480, 60)
|
for i in range(0, 480, 60)
|
||||||
)
|
)
|
||||||
|
|
||||||
@ -185,7 +185,8 @@ class VBAN_VMRT_Packet_Data:
|
|||||||
def buslabels(self) -> tuple:
|
def buslabels(self) -> tuple:
|
||||||
"""returns tuple of bus labels"""
|
"""returns tuple of bus labels"""
|
||||||
return tuple(
|
return tuple(
|
||||||
self._busLabelUTF8c60[i : i + 60].decode("ascii") for i in range(0, 480, 60)
|
self._busLabelUTF8c60[i : i + 60].decode("ascii").split("\x00")[0]
|
||||||
|
for i in range(0, 480, 60)
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user