убрана передача usb интерфейса в командный интерфейс, причина - отсутствие инициализации usb интерфейса

This commit is contained in:
parent 2aa84d9dd3
commit 7355a1233b
1 changed files with 8 additions and 5 deletions

View File

@ -22,11 +22,14 @@ static void Mma_InitComInt(
) { ) {
tSerialPortIO *thisComIntPortIO; 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; // thisComIntPortIO = &env->serialPorts->SerialPortCan2IO;
ComInt_Init( ComInt_Init(
&env->comInt, &env->comInt,