From d384755ebf9fd1c7bfba5fdf3dd6568ff792a434 Mon Sep 17 00:00:00 2001 From: puddly <32534428+puddly@users.noreply.github.com> Date: Tue, 10 Sep 2024 16:16:14 -0400 Subject: [PATCH] Remove stale constants from `Gateway` --- bellows/uart.py | 15 --------------- 1 file changed, 15 deletions(-) diff --git a/bellows/uart.py b/bellows/uart.py index ee2aea08..d48838d5 100644 --- a/bellows/uart.py +++ b/bellows/uart.py @@ -19,21 +19,6 @@ class Gateway(asyncio.Protocol): - FLAG = b"\x7E" # Marks end of frame - ESCAPE = b"\x7D" - XON = b"\x11" # Resume transmission - XOFF = b"\x13" # Stop transmission - SUBSTITUTE = b"\x18" - CANCEL = b"\x1A" # Terminates a frame in progress - STUFF = 0x20 - RANDOMIZE_START = 0x42 - RANDOMIZE_SEQ = 0xB8 - - RESERVED = FLAG + ESCAPE + XON + XOFF + SUBSTITUTE + CANCEL - - class Terminator: - pass - def __init__(self, application, connected_future=None, connection_done_future=None): self._application = application