убрана передача usb интерфейса в командный интерфейс, причина - отсутствие инициализации usb интерфейса
This commit is contained in:
parent
2aa84d9dd3
commit
7355a1233b
|
|
@ -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;
|
||||
}
|
||||
|
||||
// if(GpioPinGet(&env->power.pins->usb)){
|
||||
// thisComIntPortIO = &env->serialPorts->SerialPortUsbIO;
|
||||
// } else {
|
||||
// thisComIntPortIO = &env->serialPorts->ComIntHalfDuplexIo;
|
||||
// }
|
||||
|
||||
// thisComIntPortIO = &env->serialPorts->SerialPortCan2IO;
|
||||
ComInt_Init(
|
||||
&env->comInt,
|
||||
|
|
|
|||
Loading…
Reference in New Issue