Обновление платы на V2
This commit is contained in:
parent
8851e61335
commit
5879510f26
|
|
@ -265,6 +265,7 @@ void set_CanSpamTransmitter(tCanSpamTransmitter *env) {
|
||||||
if (osMutexAcquire(env->access, 5000) == osOK) {
|
if (osMutexAcquire(env->access, 5000) == osOK) {
|
||||||
memcpy(&ccu_candb_tx.CCU_Errors, &rtY.CCU_Errors_model, sizeof(ccu_candb_tx.CCU_Errors));
|
memcpy(&ccu_candb_tx.CCU_Errors, &rtY.CCU_Errors_model, sizeof(ccu_candb_tx.CCU_Errors));
|
||||||
memcpy(&ccu_candb_tx.CCU_Stat1, &rtY.CCU_Stat1_model, sizeof(ccu_candb_tx.CCU_Stat1));
|
memcpy(&ccu_candb_tx.CCU_Stat1, &rtY.CCU_Stat1_model, sizeof(ccu_candb_tx.CCU_Stat1));
|
||||||
|
memcpy(&ccu_candb_tx.CCU_Stat2, &rtY.CCU_Stat2_model, sizeof(ccu_candb_tx.CCU_Stat2));
|
||||||
osMutexRelease(env->access);
|
osMutexRelease(env->access);
|
||||||
} else {
|
} else {
|
||||||
LoggerErrorStatic(LOGGER, LOG_SIGN, "Access error set_CanSpamTransmitter");
|
LoggerErrorStatic(LOGGER, LOG_SIGN, "Access error set_CanSpamTransmitter");
|
||||||
|
|
|
||||||
|
|
@ -11,7 +11,7 @@
|
||||||
#include "LoggerInterface.h"
|
#include "LoggerInterface.h"
|
||||||
|
|
||||||
#define CCU_Stat1_SEND 1
|
#define CCU_Stat1_SEND 1
|
||||||
#define CCU_Stat2_SEND 0
|
#define CCU_Stat2_SEND 1
|
||||||
#define CCU_Stat3_SEND 0
|
#define CCU_Stat3_SEND 0
|
||||||
#define CCU_Errors_SEND 1
|
#define CCU_Errors_SEND 1
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue