diff --git a/firmware/console/binary/tunerstudio_configuration.h b/firmware/console/binary/tunerstudio_configuration.h index 054ea7f04d..2b76b0f78f 100644 --- a/firmware/console/binary/tunerstudio_configuration.h +++ b/firmware/console/binary/tunerstudio_configuration.h @@ -176,6 +176,7 @@ typedef struct { TsCalMode calibrationMode; // 132 uint8_t padding[1]; // 133 + // we want a hash of engineMake+engineCode+vehicleName in the log file in order to match TS logs to rusEFI Online tune int16_t engineMakeCodeNameCrc16; // 134 // Errors int totalTriggerErrorCounter; // 136 diff --git a/firmware/console/status_loop.cpp b/firmware/console/status_loop.cpp index 00404e1af8..e7447c64bd 100644 --- a/firmware/console/status_loop.cpp +++ b/firmware/console/status_loop.cpp @@ -765,6 +765,8 @@ void updateTunerStudioState(TunerStudioOutputChannels *tsOutputChannels DECLARE_ tsOutputChannels->totalTriggerErrorCounter = engine->triggerCentral.triggerState.totalTriggerErrorCounter; // 132 tsOutputChannels->orderingErrorCounter = engine->triggerCentral.triggerState.orderingErrorCounter; + // 134 we take 2 bytes of crc32, no idea if it's right to call it crc16 or not + tsOutputChannels->engineMakeCodeNameCrc16 = crc32(engineConfiguration->engineMake, 3 * VEHICLE_INFO_SIZE); // 68 tsOutputChannels->baroCorrection = engine->engineState.baroCorrection; // 140