Обновление
This commit is contained in:
parent
43b5c15029
commit
9ee276bab0
3
CanUds.c
3
CanUds.c
|
|
@ -463,7 +463,7 @@ static uint16_t WriteDataByIdentifier_2E(tCanUds *env) {
|
||||||
|
|
||||||
// Tester_Fingerprint
|
// Tester_Fingerprint
|
||||||
if (dataIdentifier_lo == 0x5A) {
|
if (dataIdentifier_lo == 0x5A) {
|
||||||
tFingerprint *fingerprint = (tFingerprint *) &env->data.data[4];
|
tFingerprint *fingerprint = (tFingerprint *) &env->data.data[3];
|
||||||
if (is_valid_day(fingerprint->year, fingerprint->month, fingerprint->day) == false) {
|
if (is_valid_day(fingerprint->year, fingerprint->month, fingerprint->day) == false) {
|
||||||
return setResponseError(env, UDS_WriteDataByIdentifier,
|
return setResponseError(env, UDS_WriteDataByIdentifier,
|
||||||
UDS_error_requestOutOfRange);
|
UDS_error_requestOutOfRange);
|
||||||
|
|
@ -1606,6 +1606,7 @@ void CanUds_Init(
|
||||||
);
|
);
|
||||||
|
|
||||||
env->currentSession = UDS_session_defaultSession;
|
env->currentSession = UDS_session_defaultSession;
|
||||||
|
statusData.Status_Active_Diagnostic_Session.Active_Diagnostic_Session = UDS_session_defaultSession;
|
||||||
|
|
||||||
InitThreadBlock(env->T_can_Uds, "CanUds", osPriorityNormal);
|
InitThreadBlock(env->T_can_Uds, "CanUds", osPriorityNormal);
|
||||||
};
|
};
|
||||||
Loading…
Reference in New Issue