Изменены интерфейсы UDS (добавлено управление актуаторами)
This commit is contained in:
parent
fc62187c0c
commit
85bdc2361d
4
CanUds.c
4
CanUds.c
|
|
@ -602,7 +602,7 @@ static uint16_t InputOutputControlByIdentifier_2F(tCanUds *env) {
|
||||||
|
|
||||||
uint8_t *pSet = (uint8_t *) &env->Status_Set_For_Model_output;
|
uint8_t *pSet = (uint8_t *) &env->Status_Set_For_Model_output;
|
||||||
|
|
||||||
pSet[dataIdentifier_lo - 0x60 - 1] = 1;
|
pSet[dataIdentifier_lo - 0x60] = 1;
|
||||||
|
|
||||||
memcpy(uds_IoDataByIdentifier_2F_com_CF[dataIdentifier_lo].data, &env->data->data[4], size);
|
memcpy(uds_IoDataByIdentifier_2F_com_CF[dataIdentifier_lo].data, &env->data->data[4], size);
|
||||||
|
|
||||||
|
|
@ -741,7 +741,7 @@ static uint16_t InputOutputControlByIdentifier_2F(tCanUds *env) {
|
||||||
if ((dataIdentifier_lo >= 0x60) && (dataIdentifier_lo <= 0x78)) {
|
if ((dataIdentifier_lo >= 0x60) && (dataIdentifier_lo <= 0x78)) {
|
||||||
|
|
||||||
uint8_t *pSet = (uint8_t *) &env->Status_Set_For_Model_output;
|
uint8_t *pSet = (uint8_t *) &env->Status_Set_For_Model_output;
|
||||||
pSet[dataIdentifier_lo - 0x60 - 1] = 0;
|
pSet[dataIdentifier_lo - 0x60] = 0;
|
||||||
return 4;
|
return 4;
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue