From c025530c25caacdfc6e3d2699e6cacb4a7515e9e Mon Sep 17 00:00:00 2001 From: huang <1724659546@qq.com> Date: Mon, 13 Oct 2025 14:36:49 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B0=83=E6=95=B4=E4=BB=A5=E9=80=82=E5=BA=94es?= =?UTF-8?q?p32?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/lora/lora_mesh_uart_passthrough_manager.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/lora/lora_mesh_uart_passthrough_manager.py b/app/lora/lora_mesh_uart_passthrough_manager.py index bca4207..53caa54 100644 --- a/app/lora/lora_mesh_uart_passthrough_manager.py +++ b/app/lora/lora_mesh_uart_passthrough_manager.py @@ -116,7 +116,7 @@ class LoRaMeshUartPassthroughManager: log(f"LoRa: 接收到错误帧头: {hex(self._rx_buffer[0])},正在寻找下一个ED...") next_ed = self._rx_buffer.find(b'\xed', 1) if next_ed == -1: - self._rx_buffer.clear() + self._rx_buffer[:] = b'' else: self._rx_buffer = self._rx_buffer[next_ed:] continue