Обновление платы на V2

This commit is contained in:
cfif 2026-06-03 16:50:10 +03:00
parent c7e0ee86ec
commit ad05b1dfbd
2 changed files with 7 additions and 3 deletions

View File

@ -102,12 +102,15 @@ static eTimeEventTransmit isEventTransmitter(tCanSpamTransmitter *env) {
env->time_CCU_HVC_Req_Msg = env->timeMs + CCU_HVC_Req_Msg_CYC; env->time_CCU_HVC_Req_Msg = env->timeMs + CCU_HVC_Req_Msg_CYC;
// Rolling Counter [0 - 15] // Rolling Counter [0 - 15]
if (ccu_candb_tx.CCU_HVC_Req_Msg.CCU_HVC_Req_RC > 15) { if (env->CCU_HVC_Req_Msg_CCU_HVC_Req_RC > 15) {
ccu_candb_tx.CCU_HVC_Req_Msg.CCU_HVC_Req_RC = 0; env->CCU_HVC_Req_Msg_CCU_HVC_Req_RC = 0;
} else { } 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 XOR8 of the data field this message
// Checksum computed as per XOR algorithm: // Checksum computed as per XOR algorithm:
// Byte 1 XOR byte 2 .... XOR byte n-1. (n = packet length.) // Byte 1 XOR byte 2 .... XOR byte n-1. (n = packet length.)

View File

@ -61,6 +61,7 @@ typedef struct {
uint32_t time_CCU_Msg3; uint32_t time_CCU_Msg3;
uint32_t time_CCU_AC_Ctrl; uint32_t time_CCU_AC_Ctrl;
uint8_t CCU_HVC_Req_Msg_CCU_HVC_Req_RC;
bool isMute; bool isMute;