diff --git a/Inc/CanSerialPortFrameXCP.h b/Inc/CanSerialPortFrameXCP.h index 2c07e5a..ed08429 100644 --- a/Inc/CanSerialPortFrameXCP.h +++ b/Inc/CanSerialPortFrameXCP.h @@ -590,7 +590,8 @@ typedef struct __attribute__ ((packed)) { } eXcpCommand_XCP_GET_CAL_PAGE_EA; -typedef bool (xcp_clear_flash_func)(uint32_t firstPageAddr, uint32_t totalSize); +typedef bool (xcp_clear_flash_func)(uint32_t firstPageAddr, uint32_t totalSize, void *wdTriggerFct, +void *wdTriggerFct_env); typedef bool (xcp_write_flash_func)(uint32_t beginPageAddr, void *sourceRamAddr, uint32_t size); diff --git a/Src/CanSerialPortFrameXCP.c b/Src/CanSerialPortFrameXCP.c index 1b1e81b..303b4c8 100644 --- a/Src/CanSerialPortFrameXCP.c +++ b/Src/CanSerialPortFrameXCP.c @@ -1077,7 +1077,7 @@ static uint8_t XCP_PROGRAM_CLEAR_D1(tCanSerialPortFrameXCP *env) { return 2; } - env->clear_flash_func(env->ADR_MTA, request->CLEAR_RANGE); + env->clear_flash_func(env->ADR_MTA, request->CLEAR_RANGE, NULL, NULL); } else { env->response[0] = XCP_COMMAND_DISCONNECT;