Verified Commit 99a74adf authored by Clayton Craft's avatar Clayton Craft
Browse files

stm_agps_serial: don't reinitialize self._buf

parent 5f25af6b
......@@ -20,6 +20,7 @@ class STM_AGPS:
f"{serial_port}")
self._ser_port = serial_port
self._location = b""
# reminder: bytearrays are mutable
self._buf = bytearray()
async def __aenter__(self):
......
......@@ -18,8 +18,6 @@ class STM_AGPS_SERIAL(STM_AGPS):
super().__init__(serial_port)
self.__log = logging.getLogger(__name__)
self._baud = baud
# reminder: bytearrays are mutable
self._buf = bytearray()
async def __aenter__(self):
await self.open()
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment