Обновление
This commit is contained in:
parent
53873f7533
commit
9d44036d29
|
|
@ -29,7 +29,7 @@ static void ListenCanSpamReceiver(tCanSpamReceiver *env) {
|
|||
if (recv == 0)
|
||||
return;
|
||||
|
||||
if (osMutexAcquire(env->access, 100) == osOK) {
|
||||
if (osMutexAcquire(env->access, 1000) == osOK) {
|
||||
|
||||
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);
|
||||
|
||||
osMutexRelease(env->access);
|
||||
} else {
|
||||
LoggerErrorStatic(LOGGER, LOG_SIGN, "Access error ListenCanSpamReceiver");
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue