From 37e65e159a7c410162feb349620b2af974710afb Mon Sep 17 00:00:00 2001 From: rusefillc Date: Sat, 10 Sep 2022 01:05:31 -0400 Subject: [PATCH] Mark is asking for VIN number field #3967 GM says Hi --- firmware/controllers/algo/rusefi_types.h | 2 ++ firmware/integration/rusefi_config.txt | 8 +++++++- firmware/tunerstudio/rusefi.input | 1 + 3 files changed, 10 insertions(+), 1 deletion(-) diff --git a/firmware/controllers/algo/rusefi_types.h b/firmware/controllers/algo/rusefi_types.h index db66c2d81e..a46dd70187 100644 --- a/firmware/controllers/algo/rusefi_types.h +++ b/firmware/controllers/algo/rusefi_types.h @@ -100,6 +100,8 @@ using error_message_t = char[ERROR_BUFFER_SIZE]; using vehicle_info_t = char[VEHICLE_INFO_SIZE]; +using vin_number_t = char[VIN_NUMBER_SIZE]; + using gppwm_note_t = char[GPPWM_NOTE_SIZE]; using le_formula_t = char[LE_COMMAND_LENGTH]; diff --git a/firmware/integration/rusefi_config.txt b/firmware/integration/rusefi_config.txt index 4c7bb961ab..40b4e11a9b 100644 --- a/firmware/integration/rusefi_config.txt +++ b/firmware/integration/rusefi_config.txt @@ -891,6 +891,9 @@ custom maf_sensor_type_e 1 bits, S08, @OFFSET@, [0:1], @@maf_sensor_type_e_enum@ ! same length used for critical and soft error messages #define ERROR_BUFFER_SIZE 120 +#define VIN_NUMBER_SIZE 17 + custom vin_number_t @@VIN_NUMBER_SIZE@@ string, ASCII, @OFFSET@, @@VIN_NUMBER_SIZE@@ + custom vehicle_info_t @@VEHICLE_INFO_SIZE@@ string, ASCII, @OFFSET@, @@VEHICLE_INFO_SIZE@@ custom gppwm_note_t @@GPPWM_NOTE_SIZE@@ string, ASCII, @OFFSET@, @@GPPWM_NOTE_SIZE@@ @@ -1510,7 +1513,10 @@ float etbMinimumPosition;;"%", 1, 0, 0.01, 100, 2 uint16_t tuneHidingKey;;"", 1, 0, 0, 20000, 0 -uint8_t[244] mainUnusedEnd;;"units", 1, 0, 0, 1, 0 + + vin_number_t vinNumber + +uint8_t[224] mainUnusedEnd;;"units", 1, 0, 0, 1, 0 ! end of engine_configuration_s end_struct diff --git a/firmware/tunerstudio/rusefi.input b/firmware/tunerstudio/rusefi.input index 58b35429cf..6e91426b5e 100644 --- a/firmware/tunerstudio/rusefi.input +++ b/firmware/tunerstudio/rusefi.input @@ -3940,6 +3940,7 @@ dialog = tcuControls, "Transmission Settings" field = "consumeObdSensors", consumeObdSensors, { canReadEnabled == 1 && canWriteEnabled == 1} field = "Artificial Misfire", artificialTestMisfire field = "Always use instant RPM", alwaysInstantRpm + field = vinNumber, vinNumber panel = mapCamDialog panel = allTriggerDebug panel = torqueTableTbl