remove public_packet setter. should be read only.

version bump to match changelog

some rewording in readme.
This commit is contained in:
onyx-and-iris
2022-04-30 16:57:47 +01:00
parent 51833d68ff
commit 11da78e2e7
3 changed files with 13 additions and 13 deletions

View File

@@ -155,10 +155,6 @@ class VbanCmd(abc.ABC):
while self.pdirty:
pass
@public_packet.setter
def public_packet(self, val):
self._public_packet = val
def _keepupdated(self) -> NoReturn:
"""
Continously update public packet in background.
@@ -172,8 +168,8 @@ class VbanCmd(abc.ABC):
while self.running:
private_packet = self._get_rt()
self._pdirty = private_packet.isdirty(self.public_packet)
if not private_packet.__eq__(self.public_packet):
self.public_packet = private_packet
if not private_packet == self.public_packet:
self._public_packet = private_packet
def _get_rt(self) -> VBAN_VMRT_Packet_Data:
"""Attempt to fetch data packet until a valid one found"""