From 58886f88715d55190cb7ed6224a10c11cd4b6d66 Mon Sep 17 00:00:00 2001 From: cfif Date: Thu, 12 Mar 2026 13:18:21 +0300 Subject: [PATCH] =?UTF-8?q?=D0=9D=D0=B0=D1=87=D0=B0=D0=BB=D0=BE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- SerialPorts.c | 3 ++- SerialPorts.h | 1 + 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/SerialPorts.c b/SerialPorts.c index d4b4d97..ddb0fa1 100644 --- a/SerialPorts.c +++ b/SerialPorts.c @@ -456,6 +456,7 @@ void SerialPorts_Init(tRs485DirectionPins *directionPins) { env->cliVirtualInIo = SerialPortP2p_GetIoFirst(&env->cliVirtualPort); env->cliVirtualOutIo = SerialPortP2p_GetIoSecond(&env->cliVirtualPort); - SerialPortUsb_Init(&env->SerialPortUsb, 1024); + SerialPortUsb_Init(&env->SerialPortUsb, 1024, 1024); env->SerialPortUsbIO = SerialPortUsb_GetIo(&env->SerialPortUsb); + env->SerialPortUsbSnifferIO = SerialPortUsb_GetSnifferIo(&env->SerialPortUsb); } \ No newline at end of file diff --git a/SerialPorts.h b/SerialPorts.h index aac941d..0f3d36c 100644 --- a/SerialPorts.h +++ b/SerialPorts.h @@ -39,6 +39,7 @@ typedef struct { tSerialPortUsbArtery SerialPortUsb; tSerialPortIO SerialPortUsbIO; + tSerialPortIO SerialPortUsbSnifferIO; } tSerialPorts;