From 72c6dae8feaf50cb6152234bcf71592a10d6be74 Mon Sep 17 00:00:00 2001 From: rusefi Date: Thu, 16 Mar 2023 15:50:31 -0400 Subject: [PATCH] refactoring --- firmware/controllers/flash_main.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/firmware/controllers/flash_main.cpp b/firmware/controllers/flash_main.cpp index 5114c6b551..0511835ec2 100644 --- a/firmware/controllers/flash_main.cpp +++ b/firmware/controllers/flash_main.cpp @@ -332,7 +332,7 @@ void readFromFlash() { // we can only change the state after the CRC check engineConfiguration->byFirmwareVersion = getRusEfiVersion(); - memset(persistentState.persistentConfiguration.warning_message , 0, ERROR_BUFFER_SIZE); + memset(persistentState.persistentConfiguration.warning_message , 0, sizeof(persistentState.persistentConfiguration.warning_message)); validateConfiguration(); }