From 4bfa50e3c1d617a20ad630ed2b61f42d5c743529 Mon Sep 17 00:00:00 2001 From: Tim Gunter Date: Wed, 16 Sep 2020 09:34:02 -0700 Subject: [PATCH] Possible typo? Should these "self.rfBuf"s be "self._rxBuf"s? --- meshtastic/__init__.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/meshtastic/__init__.py b/meshtastic/__init__.py index 8167911..fba821c 100644 --- a/meshtastic/__init__.py +++ b/meshtastic/__init__.py @@ -506,14 +506,14 @@ class StreamInterface(MeshInterface): elif ptr == 1: # looking for START2 if c != START2: - self.rfBuf = empty # failed to find start2 + self._rxBuf = empty # failed to find start2 elif ptr >= HEADER_LEN: # we've at least got a header # big endian length follos header packetlen = (self._rxBuf[2] << 8) + self._rxBuf[3] if ptr == HEADER_LEN: # we _just_ finished reading the header, validate length if packetlen > MAX_TO_FROM_RADIO_SIZE: - self.rfBuf = empty # length ws out out bounds, restart + self._rxBuf = empty # length ws out out bounds, restart if len(self._rxBuf) != 0 and ptr + 1 == packetlen + HEADER_LEN: try: