From 45a0aa43aa2cc865c5c59579751a893ee86516a1 Mon Sep 17 00:00:00 2001 From: Eduardo Silva Date: Mon, 6 Jan 2025 18:29:45 +0000 Subject: [PATCH] This was on the wrong place --- irsdk.go | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/irsdk.go b/irsdk.go index 7760f5f..e955535 100644 --- a/irsdk.go +++ b/irsdk.go @@ -161,15 +161,14 @@ func Init(f Reader, exportTelem string, exportYAML string) (*IBT, error) { log.Fatal(err) } - // Write to YAML output file - if exportYAML != "" { - ibt.exportYAML(exportYAML) - } - ibt.SessionInfo, err = parseSessionInfo(sessionInfoStringRaw, ibt.Headers.SessionInfoLength) if err != nil { return nil, fmt.Errorf("Unable to parse SessionInfoString from file: %v", err) } + // Write to YAML output file + if exportYAML != "" { + ibt.exportYAML(exportYAML) + } // Read the telemetry vars info err = ibt.readVariablerHeaders()