Изменения на новые настройки пинов и устройств
This commit is contained in:
parent
ec61abc208
commit
e20766eec0
|
|
@ -52,6 +52,7 @@ void ComInt_Init(
|
|||
// tDeviceStorage *store,
|
||||
// tDeviceTestsTable *tests,
|
||||
tSerialPortIO *gsmIo,
|
||||
tSerialPortIO *gnssIo,
|
||||
tSerialPortIO *cliIo,
|
||||
tStringLink *currentModeName
|
||||
);
|
||||
|
|
|
|||
|
|
@ -49,9 +49,10 @@ static void ComIntInitVersions(tComInt *env, tString16 *deviceId) {
|
|||
);
|
||||
}
|
||||
|
||||
static void ComIntInitSerialBridges(tComInt *env, tSerialPortIO *gsmIo, tSerialPortIO *cliIo) {
|
||||
static void ComIntInitSerialBridges(tComInt *env, tSerialPortIO *gsmIo, tSerialPortIO *gnssIo, tSerialPortIO *cliIo) {
|
||||
SerialBridges_InitStatic(&env->serialBridges, env->memAlloc.serialBridge);
|
||||
SerialBridges_AddStatic(&env->serialBridges, "AT_GSM", gsmIo);
|
||||
SerialBridges_AddStatic(&env->serialBridges, "GNSS", gnssIo);
|
||||
SerialBridges_AddStatic(&env->serialBridges, "CLI", cliIo);
|
||||
}
|
||||
|
||||
|
|
@ -61,6 +62,7 @@ void ComInt_Init(
|
|||
// tDeviceStorage *store,
|
||||
// tDeviceTestsTable *tests,
|
||||
tSerialPortIO *gsmIo,
|
||||
tSerialPortIO *gnssIo,
|
||||
tSerialPortIO *cliIo,
|
||||
tStringLink *currentModeName
|
||||
) {
|
||||
|
|
@ -71,7 +73,7 @@ void ComInt_Init(
|
|||
|
||||
|
||||
if (gsmIo != NULL)
|
||||
ComIntInitSerialBridges(env, gsmIo, cliIo);
|
||||
ComIntInitSerialBridges(env, gsmIo, gnssIo, cliIo);
|
||||
|
||||
//Добавляем обработчики комманд
|
||||
XfcProtMethodsAdd_Mandatory(&env->table, &env->ping, &env->table);
|
||||
|
|
|
|||
Loading…
Reference in New Issue