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(