mirror of
https://github.com/onyx-and-iris/vban-cmd-python.git
synced 2024-11-15 17:10:46 +00:00
Update dataclass.py
split at null terminator
This commit is contained in:
parent
559acb9e89
commit
a94b2bb265
@ -109,11 +109,11 @@ class VBAN_VMRT_Packet_Data:
|
||||
@property
|
||||
def striplabels(self) -> tuple:
|
||||
""" returns tuple of strip labels """
|
||||
return tuple(self._stripLabelUTF8c60[i:i+60].decode('ascii') for i in range(0, 480, 60))
|
||||
return tuple(self._stripLabelUTF8c60[i:i+60].decode('ascii').split('\x00')[0] for i in range(0, 480, 60))
|
||||
@property
|
||||
def buslabels(self) -> tuple:
|
||||
""" returns tuple of bus labels """
|
||||
return tuple(self._busLabelUTF8c60[i:i+60].decode('ascii') for i in range(0, 480, 60))
|
||||
return tuple(self._busLabelUTF8c60[i:i+60].decode('ascii').split('\x00')[0] for i in range(0, 480, 60))
|
||||
|
||||
@dataclass
|
||||
class VBAN_VMRT_Packet_Header:
|
||||
|
Loading…
Reference in New Issue
Block a user