From 4fe50ac65b2bb4d0297d9284b0f064407a32af7e Mon Sep 17 00:00:00 2001 From: rusefillc Date: Sun, 4 Jun 2023 19:49:53 -0400 Subject: [PATCH] only:better error message --- firmware/controllers/algo/gear_detector.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/firmware/controllers/algo/gear_detector.cpp b/firmware/controllers/algo/gear_detector.cpp index b2df6a4d7a..67e58ad2b1 100644 --- a/firmware/controllers/algo/gear_detector.cpp +++ b/firmware/controllers/algo/gear_detector.cpp @@ -31,7 +31,7 @@ void GearDetector::onConfigurationChange(engine_configuration_s const * /*previo // validate gears for (size_t i = 0; i < gearCount; i++) { if (engineConfiguration->gearRatio[i] <= 0) { - firmwareError(ObdCode::OBD_PCM_Processor_Fault, "Invalid gear ratio for #%d", i + 1); + firmwareError(ObdCode::OBD_PCM_Processor_Fault, "Expecting positive gear ratio for #%d", i + 1); return; } }