From 1ceff4755793d5d1c410c4ac133cca293255f7e4 Mon Sep 17 00:00:00 2001 From: cfif Date: Wed, 19 Nov 2025 10:59:34 +0300 Subject: [PATCH] =?UTF-8?q?=D0=9E=D0=B1=D0=BD=D0=BE=D0=B2=D0=BB=D0=B5?= =?UTF-8?q?=D0=BD=D0=B8=D0=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Inc/LinFlagchip.h | 2 +- Src/LinFlagchip.c | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/Inc/LinFlagchip.h b/Inc/LinFlagchip.h index cea1e65..4b81b4d 100644 --- a/Inc/LinFlagchip.h +++ b/Inc/LinFlagchip.h @@ -13,7 +13,7 @@ #include "fc7xxx_driver_lin.h" // LIN protocol ID definition -#define LIN_MASTER_SEND_ID (0x01U) +#define LIN_MASTER_SEND_ID (0x3FU) #define LIN_MASTER_RECEIVE_ID (0x02U) #define LIN_MASTER_GO_TO_SLEEP_ID (0x03U) diff --git a/Src/LinFlagchip.c b/Src/LinFlagchip.c index 50cea82..fb48587 100644 --- a/Src/LinFlagchip.c +++ b/Src/LinFlagchip.c @@ -28,10 +28,10 @@ void GetLinCallbackHandler(tLinFlagchip *env, uint8_t u8LinIndex, void *state) { if (pXferState->currentId == LIN_MASTER_SEND_ID) { // Call to Send Frame DATA Function LIN_DrvSendFrameNonBlocking(u8LinIndex, env->g_aTxBuffer, sizeof(env->g_aTxBuffer)); - } else if (pXferState->currentId == LIN_MASTER_RECEIVE_ID) { - LIN_DrvReceiveFrameNonBlocking(u8LinIndex, env->g_aRxBuffer, sizeof(env->g_aRxBuffer)); - } else if (pXferState->currentId == LIN_MASTER_GO_TO_SLEEP_ID) { - LIN_DrvGoToSleepMode(u8LinIndex); + //} else if (pXferState->currentId == LIN_MASTER_RECEIVE_ID) { + // LIN_DrvReceiveFrameNonBlocking(u8LinIndex, env->g_aRxBuffer, sizeof(env->g_aRxBuffer)); + //} else if (pXferState->currentId == LIN_MASTER_GO_TO_SLEEP_ID) { + // LIN_DrvGoToSleepMode(u8LinIndex); } else { // Misra check. uint8_t data = LIN_TIMEOUT;