From 16a3fd976e37d4484ec2acfdaad6e475d0b426ab Mon Sep 17 00:00:00 2001 From: Andrey Gusakov Date: Wed, 5 Feb 2025 19:16:26 +0300 Subject: [PATCH] simulator: fix --- firmware/controllers/core/error_handling.cpp | 3 --- 1 file changed, 3 deletions(-) diff --git a/firmware/controllers/core/error_handling.cpp b/firmware/controllers/core/error_handling.cpp index 1b129e4b55..bbe358946e 100644 --- a/firmware/controllers/core/error_handling.cpp +++ b/firmware/controllers/core/error_handling.cpp @@ -640,10 +640,7 @@ static void firmwareErrorV(ObdCode code, const char *fmt, va_list ap) { // large buffer on stack is risky we better use normal memory static char errorBuffer[200]; - va_list ap; - va_start(ap, fmt); vsnprintf(errorBuffer, sizeof(errorBuffer), fmt, ap); - va_end(ap); printf("\x1B[31m>>>>>>>>>> firmwareError [%s]\r\n\x1B[0m\r\n", errorBuffer);