From 7355a1233ba9e01c3aada043679832b0d0f02b40 Mon Sep 17 00:00:00 2001 From: korolev Date: Fri, 21 Feb 2025 12:15:35 +0300 Subject: [PATCH] =?UTF-8?q?=D1=83=D0=B1=D1=80=D0=B0=D0=BD=D0=B0=20=D0=BF?= =?UTF-8?q?=D0=B5=D1=80=D0=B5=D0=B4=D0=B0=D1=87=D0=B0=20usb=20=D0=B8=D0=BD?= =?UTF-8?q?=D1=82=D0=B5=D1=80=D1=84=D0=B5=D0=B9=D1=81=D0=B0=20=D0=B2=20?= =?UTF-8?q?=D0=BA=D0=BE=D0=BC=D0=B0=D0=BD=D0=B4=D0=BD=D1=8B=D0=B9=20=D0=B8?= =?UTF-8?q?=D0=BD=D1=82=D0=B5=D1=80=D1=84=D0=B5=D0=B9=D1=81,=20=D0=BF?= =?UTF-8?q?=D1=80=D0=B8=D1=87=D0=B8=D0=BD=D0=B0=20-=20=D0=BE=D1=82=D1=81?= =?UTF-8?q?=D1=83=D1=82=D1=81=D1=82=D0=B2=D0=B8=D0=B5=20=D0=B8=D0=BD=D0=B8?= =?UTF-8?q?=D1=86=D0=B8=D0=B0=D0=BB=D0=B8=D0=B7=D0=B0=D1=86=D0=B8=D0=B8=20?= =?UTF-8?q?usb=20=D0=B8=D0=BD=D1=82=D0=B5=D1=80=D1=84=D0=B5=D0=B9=D1=81?= =?UTF-8?q?=D0=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- MainModesArbiter_InitStage.c | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/MainModesArbiter_InitStage.c b/MainModesArbiter_InitStage.c index c1e27b9..ecc4c20 100644 --- a/MainModesArbiter_InitStage.c +++ b/MainModesArbiter_InitStage.c @@ -22,11 +22,14 @@ static void Mma_InitComInt( ) { tSerialPortIO *thisComIntPortIO; - if(GpioPinGet(&env->power.pins->usb)){ - thisComIntPortIO = &env->serialPorts->SerialPortUsbIO; - } else { - thisComIntPortIO = &env->serialPorts->ComIntHalfDuplexIo; - } + thisComIntPortIO = &env->serialPorts->ComIntHalfDuplexIo; + +// if(GpioPinGet(&env->power.pins->usb)){ +// thisComIntPortIO = &env->serialPorts->SerialPortUsbIO; +// } else { +// thisComIntPortIO = &env->serialPorts->ComIntHalfDuplexIo; +// } + // thisComIntPortIO = &env->serialPorts->SerialPortCan2IO; ComInt_Init( &env->comInt,