engine crc for REO
This commit is contained in:
parent
7be4c75033
commit
c59271c669
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue