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