Обновление платы на V2
This commit is contained in:
parent
c7e0ee86ec
commit
ad05b1dfbd
|
|
@ -102,12 +102,15 @@ static eTimeEventTransmit isEventTransmitter(tCanSpamTransmitter *env) {
|
|||
env->time_CCU_HVC_Req_Msg = env->timeMs + CCU_HVC_Req_Msg_CYC;
|
||||
|
||||
// Rolling Counter [0 - 15]
|
||||
if (ccu_candb_tx.CCU_HVC_Req_Msg.CCU_HVC_Req_RC > 15) {
|
||||
ccu_candb_tx.CCU_HVC_Req_Msg.CCU_HVC_Req_RC = 0;
|
||||
if (env->CCU_HVC_Req_Msg_CCU_HVC_Req_RC > 15) {
|
||||
env->CCU_HVC_Req_Msg_CCU_HVC_Req_RC = 0;
|
||||
} else {
|
||||
++ccu_candb_tx.CCU_HVC_Req_Msg.CCU_HVC_Req_RC;
|
||||
++env->CCU_HVC_Req_Msg_CCU_HVC_Req_RC;
|
||||
}
|
||||
|
||||
ccu_candb_tx.CCU_HVC_Req_Msg.CCU_HVC_Req_RC = env->CCU_HVC_Req_Msg_CCU_HVC_Req_RC;
|
||||
|
||||
|
||||
// Checksum XOR8 of the data field this message
|
||||
// Checksum computed as per XOR algorithm:
|
||||
// Byte 1 XOR byte 2 .... XOR byte n-1. (n = packet length.)
|
||||
|
|
|
|||
|
|
@ -61,6 +61,7 @@ typedef struct {
|
|||
uint32_t time_CCU_Msg3;
|
||||
uint32_t time_CCU_AC_Ctrl;
|
||||
|
||||
uint8_t CCU_HVC_Req_Msg_CCU_HVC_Req_RC;
|
||||
|
||||
bool isMute;
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue