Обновление
This commit is contained in:
parent
53873f7533
commit
9d44036d29
|
|
@ -29,7 +29,7 @@ static void ListenCanSpamReceiver(tCanSpamReceiver *env) {
|
||||||
if (recv == 0)
|
if (recv == 0)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
if (osMutexAcquire(env->access, 100) == osOK) {
|
if (osMutexAcquire(env->access, 1000) == osOK) {
|
||||||
|
|
||||||
uint32_t id = env->canFrame.standard_id;
|
uint32_t id = env->canFrame.standard_id;
|
||||||
|
|
||||||
|
|
@ -40,6 +40,8 @@ static void ListenCanSpamReceiver(tCanSpamReceiver *env) {
|
||||||
uint32_t result = ccu_candb_Receive(&ccu_candb_rx, env->canFrame.data, id, env->canFrame.dlc);
|
uint32_t result = ccu_candb_Receive(&ccu_candb_rx, env->canFrame.data, id, env->canFrame.dlc);
|
||||||
|
|
||||||
osMutexRelease(env->access);
|
osMutexRelease(env->access);
|
||||||
|
} else {
|
||||||
|
LoggerErrorStatic(LOGGER, LOG_SIGN, "Access error ListenCanSpamReceiver");
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue