From e20766eec0418409ffe9421b34de5851989a9976 Mon Sep 17 00:00:00 2001 From: cfif Date: Wed, 28 May 2025 15:16:06 +0300 Subject: [PATCH] =?UTF-8?q?=D0=98=D0=B7=D0=BC=D0=B5=D0=BD=D0=B5=D0=BD?= =?UTF-8?q?=D0=B8=D1=8F=20=D0=BD=D0=B0=20=D0=BD=D0=BE=D0=B2=D1=8B=D0=B5=20?= =?UTF-8?q?=D0=BD=D0=B0=D1=81=D1=82=D1=80=D0=BE=D0=B9=D0=BA=D0=B8=20=D0=BF?= =?UTF-8?q?=D0=B8=D0=BD=D0=BE=D0=B2=20=D0=B8=20=D1=83=D1=81=D1=82=D1=80?= =?UTF-8?q?=D0=BE=D0=B9=D1=81=D1=82=D0=B2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Inc/ComInt.h | 1 + Src/ComInt.c | 6 ++++-- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/Inc/ComInt.h b/Inc/ComInt.h index ae0c48b..19d8511 100644 --- a/Inc/ComInt.h +++ b/Inc/ComInt.h @@ -52,6 +52,7 @@ void ComInt_Init( // tDeviceStorage *store, // tDeviceTestsTable *tests, tSerialPortIO *gsmIo, + tSerialPortIO *gnssIo, tSerialPortIO *cliIo, tStringLink *currentModeName ); diff --git a/Src/ComInt.c b/Src/ComInt.c index 3513190..f073642 100644 --- a/Src/ComInt.c +++ b/Src/ComInt.c @@ -49,9 +49,10 @@ static void ComIntInitVersions(tComInt *env, tString16 *deviceId) { ); } -static void ComIntInitSerialBridges(tComInt *env, tSerialPortIO *gsmIo, tSerialPortIO *cliIo) { +static void ComIntInitSerialBridges(tComInt *env, tSerialPortIO *gsmIo, tSerialPortIO *gnssIo, tSerialPortIO *cliIo) { SerialBridges_InitStatic(&env->serialBridges, env->memAlloc.serialBridge); SerialBridges_AddStatic(&env->serialBridges, "AT_GSM", gsmIo); + SerialBridges_AddStatic(&env->serialBridges, "GNSS", gnssIo); SerialBridges_AddStatic(&env->serialBridges, "CLI", cliIo); } @@ -61,6 +62,7 @@ void ComInt_Init( // tDeviceStorage *store, // tDeviceTestsTable *tests, tSerialPortIO *gsmIo, + tSerialPortIO *gnssIo, tSerialPortIO *cliIo, tStringLink *currentModeName ) { @@ -71,7 +73,7 @@ void ComInt_Init( if (gsmIo != NULL) - ComIntInitSerialBridges(env, gsmIo, cliIo); + ComIntInitSerialBridges(env, gsmIo, gnssIo, cliIo); //Добавляем обработчики комманд XfcProtMethodsAdd_Mandatory(&env->table, &env->ping, &env->table);