diff --git a/src/OSCARGyroExporter/Program.cs b/src/OSCARGyroExporter/Program.cs index 6769862..59c160d 100644 --- a/src/OSCARGyroExporter/Program.cs +++ b/src/OSCARGyroExporter/Program.cs @@ -37,7 +37,7 @@ private static void ManualMode(ManualCmdArguments arg) { }); var operationResult = ReadFile(arg.InputFile) - .Bind(fileContent => MapToInputModels(fileContent, referenceDate.Value.AddMinutes(arg.TimezoneOffset))) + .Bind(fileContent => MapToInputModels(fileContent, referenceDate.Value.AddMinutes(arg.TimezoneOffset), arg.SampleRate)) .Bind(MapToOutputModel) .Bind(ConvertToOutputCsv) .Bind(fileContent => WriteToFile(fileContent, arg.OutputFile)); @@ -67,7 +67,7 @@ private static void AutomaticMode(AutomaticCmdArguments arg) { var outputFilepath = Path.Join(arg.OutputDirectory, Path.GetFileName(f)); var operationResult = ReadFile(f) - .Bind(fileContent => MapToInputModels(fileContent, referenceDateTime.Value.AddMinutes(arg.TimezoneOffset))) + .Bind(fileContent => MapToInputModels(fileContent, referenceDateTime.Value.AddMinutes(arg.TimezoneOffset), arg.SampleRate)) .Bind(MapToOutputModel) .Bind(ConvertToOutputCsv) .Bind(fileContent => WriteToFile(fileContent, outputFilepath));