From 672db9d1bd923c247526116f5204876cc20c798c Mon Sep 17 00:00:00 2001
From: Markus Quaritsch <markus.quaritsch@tugraz.at>
Date: Tue, 10 Nov 2020 09:52:11 +0100
Subject: [PATCH] fix saving files (E3, E4)

---
 VectoCore/VectoCore/OutputData/FileIO/JSONFileWriter.cs | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/VectoCore/VectoCore/OutputData/FileIO/JSONFileWriter.cs b/VectoCore/VectoCore/OutputData/FileIO/JSONFileWriter.cs
index cf29b8d26a..7a3eaa8668 100644
--- a/VectoCore/VectoCore/OutputData/FileIO/JSONFileWriter.cs
+++ b/VectoCore/VectoCore/OutputData/FileIO/JSONFileWriter.cs
@@ -762,13 +762,13 @@ public class JSONFileWriter : IOutputFileWriter
 				"GearboxFile",
 				GetRelativePath(input.JobInputData.Vehicle.Components.GearboxInputData.DataSource.SourceFile,
 					basePath));
+			body.Add("TCU", GetRelativePath(input.DriverInputData.GearshiftInputData.Source, basePath));
 		}
 		body.Add("Padd_electric", input.JobInputData.Vehicle.Components.AuxiliaryInputData.ElectricAuxPower.Value());
 
-        //if (!job.SavedInDeclarationMode)
-        //      {
-        body.Add("TCU", GetRelativePath(input.DriverInputData.GearshiftInputData.Source, basePath));
-        //}
+		//if (!job.SavedInDeclarationMode)
+		//      {
+		//}
 
         //body.Add("ShiftStrategy", input.JobInputData.ShiftStrategy);
 
-- 
GitLab