Обновление
This commit is contained in:
parent
9e8affc91f
commit
bbf6c12136
|
|
@ -111,7 +111,7 @@ static _Noreturn void CanSpamTransmitter_Thread(tCanSpamTransmitter *env) {
|
||||||
}
|
}
|
||||||
|
|
||||||
osMutexRelease(env->access);
|
osMutexRelease(env->access);
|
||||||
env->ioCanFrame->transmit(env->ioCanFrame->env, (uint8_t *) &env->canFrame, env->canFrame.dlc, 10);
|
env->ioCanFrame->transmit(env->ioCanFrame->env, (uint8_t *) &env->canFrame, env->canFrame.dlc, PROTOCOL_CAN_ADR_RAW, PROTOCOL_CAN_TYPE_RAW, 10);
|
||||||
} else {
|
} else {
|
||||||
osMutexRelease(env->access);
|
osMutexRelease(env->access);
|
||||||
SystemDelayMs(10);
|
SystemDelayMs(10);
|
||||||
|
|
|
||||||
|
|
@ -9,6 +9,9 @@
|
||||||
#include "CanSerialPortFrame.h"
|
#include "CanSerialPortFrame.h"
|
||||||
#include "ccu_candb-binutil.h"
|
#include "ccu_candb-binutil.h"
|
||||||
|
|
||||||
|
#define PROTOCOL_CAN_ADR_RAW 0x777
|
||||||
|
#define PROTOCOL_CAN_TYPE_RAW 0x0
|
||||||
|
|
||||||
typedef struct {
|
typedef struct {
|
||||||
|
|
||||||
tSerialPortFrameIO *ioCanFrame;
|
tSerialPortFrameIO *ioCanFrame;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue