diff --git a/firmware/console/binary/tunerstudio_outputs.h b/firmware/console/binary/tunerstudio_outputs.h index 1bc4dbc202..afe51ad630 100644 --- a/firmware/console/binary/tunerstudio_outputs.h +++ b/firmware/console/binary/tunerstudio_outputs.h @@ -216,7 +216,8 @@ typedef struct { scaled_voltage rawIat; // 236 scaled_voltage rawOilPressure; // 238 - uint8_t unusedAtTheEnd[4]; // we have some unused bytes to allow compatible TS changes + int16_t tuneCrc16; + uint8_t unusedAtTheEnd[2]; // we have some unused bytes to allow compatible TS changes // Temporary - will remove soon TsDebugChannels* getDebugChannels() { diff --git a/firmware/tunerstudio/rusefi.input b/firmware/tunerstudio/rusefi.input index 5c97f4a400..e0641f7b5d 100644 --- a/firmware/tunerstudio/rusefi.input +++ b/firmware/tunerstudio/rusefi.input @@ -359,6 +359,9 @@ enable2ndByteCanID = false rawIat = scalar, U16, 236, "V",{1/@@PACK_MULT_VOLTAGE@@}, 0.0 rawOilPressure = scalar, U16, 238, "V",{1/@@PACK_MULT_VOLTAGE@@}, 0.0 + ; we use this to match logs to tunes + tuneCrc16= scalar, U16, 240, "crc16", 1, 0 + ; ; see TunerStudioOutputChannels struct ; @@ -1207,6 +1210,7 @@ gaugeCategory = Sensors - Raw entry = engineMakeCodeNameCrc16, "Engine CRC16",int,"%d" + entry = tuneCrc16, "Tune CRC16",int,"%d" entry = engineMode, "Engine Mode",int,"%d" entry = warningCounter, @@GAUGE_NAME_WARNING_COUNTER@@,int,"%d"